Home of web learners

www.webn3rd.com

operator means like +,- you used in math

PHP has many kind of operator

Arithmetic operators like +,*,/,-

you know these kind of operator,we can use it in php

<?php
$a=2+3;
echo $a;
?>

output:

5

Now,you use - or * instead of + and see output

Comparasion operator is used to make comparison like 5 is greater than 3 or not

There are many comparison operator in php like >,==,!=

> means greater than,< means less than,!= means not equal to,== is equal to

lets check an example:

<?php
echo 3ɭ
?>

output:

1

thats means true,if no output comes that means it false,you can use different type of value or operator and check it

webn3rd.com

About webn3rd