Marco Kaiser wrote:
Today during a session i had a strange "magic" feature found in php.

<?php
$a = 10;
echo ++$a + $a++;
?>

there is a very simple rule that PHP inherited from C:

  never use pre- and postfix increment operators in the same expression

as the results are undefined

--
Hartmut Holzgraefe, Senior Support Engineer                            .
MySQL AB, www.mysql.com

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to