[ create a new paste ] login | about

Link: http://codepad.org/Y3CnhiLx    [ raw code | output | fork ]

PHP, pasted on Mar 14:
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

$n = 0;
$m = 0;
echo '++ before:';
echo $n+ ++$n;
echo PHP_EOL;
echo '++ after:';
echo $m+ $m++;
echo PHP_EOL;
echo 'n:'.$n;
echo PHP_EOL;
echo 'm:'.$m;


Output:
1
2
3
4
++ before:2
++ after:1
n:1
m:1


Create a new paste based on this one


Comments: