Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php increment and decrement

// Php increment and decrement: Just print it then understand
$n =9;

echo $n++;
echo PHP_EOL;
echo ++$n;
echo PHP_EOL;
echo --$n;
echo PHP_EOL;
echo $n--;
echo PHP_EOL;

echo "Another Example======
";


$a = 7;
$b = $a++;

echo $b."
".$a;
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #php #increment #decrement
ADD COMMENT
Topic
Name
8+7 =