$x ; echo " The value of x after the post-plusplus is " .
$x; $x = 4; echo "The value of x with with pre-plusplus = " .
In this case it was 5 / 2, which has a remainder of 1.
Comparisons are used to check the relationship between variables and/or values.
so the output will become: In the above example Variable( $x) with value=100. ($x*=10) now value 10 multiply with previous value(100). it gives remainder value=”1″ and this remainder assign again to variable($x). Now concatenate this string to another string using the same variable by performing ($str.=”to the world of php”).
and the output will become:1000 and it re-assign back to the variable ($x) so the output will become : 1000 In the above example. now perform divide.($x/=500) now value 500 divide with previous value(1000). and the output will become : 1 In the above example.
For example, the addition () symbol is an operator that tells PHP to compare two values.
The following lists describe the different operators used in PHP.
In general, " =" and "-=" are the most widely used combination operators.
In addition to this "shorterhand" technique, you can specify whether you want to increment before the line of code is being executed or after the line has executed. $x = 4; echo "The value of x with post-plusplus = " .