( ),[ ] !,++,--
*,/,%,^
+,-
<,<=,>,>=
==,!=
&&
||
?:
=,+=,-=,*=,/=
listed in this list are a few operators I have not covered.
int $myInt = 10;and reduces it to
string $myAverage;
if($myInt > 20)
$myAverage = "Yes";
else
$myAverage = "No";
print $myAverage;
int $myInt = 10;
string $myAverage = ($myInt > 20)? "Yes" : "No";
print $myAverage;
$a += 5;is the same as
$a = $a + 5;
$a ++;is the same as
$a = $a + 1;