Interesting result

From: Date: Sat, 21 Dec 2002 13:26:33 +0000
Subject: Interesting result
Groups: php.dev 
Request: Send a blank email to php-dev+get-92739@lists.php.net to get a copy of this message
Hi, i got an interesting case : <?php $a = 1; var_dump($a + $a++); $a = 1; $x = &$a; var_dump($a + $a++); ?> Result int(2) int(3) Can somebody explain why if there is reference to the var the result is different? Andrey

« previous php.dev (#92739) next »