This commit is contained in:
Arnel Bucio 2013-09-15 14:15:53 +08:00
parent 17c69eeb16
commit a3476993b1

View File

@ -72,7 +72,7 @@ $quotient = 2 / 1; // 2
$number = 0; $number = 0;
$number += 1; // Increment $number by 1 $number += 1; // Increment $number by 1
echo $number++; // Prints 1 (increments after evaluation) echo $number++; // Prints 1 (increments after evaluation)
echo ++$number; // Prints 3 (increments before evalutation) echo ++$number; // Prints 3 (increments before evaluation)
$number /= $float; // Divide and assign the quotient to $number $number /= $float; // Divide and assign the quotient to $number
// Strings should be enclosed in single quotes; // Strings should be enclosed in single quotes;