Re: 23 nothing is so as it seems, but why

From: Date: Thu, 19 Jan 2006 16:48:11 +0000
Subject: Re: 23 nothing is so as it seems, but why
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-21579@lists.php.net to get a copy of this message
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

« previous php.internals (#21579) next »