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

From: Date: Fri, 20 Jan 2006 11:36:01 +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-21587@lists.php.net to get a copy of this message
On Thu, Jan 19, 2006 at 06:41:17PM +0200, Marco Kaiser wrote: > Today during a session i had a strange "magic" feature found in php. > > <?php > $a = 10; > echo ++$a + $a++; > ?> > > this works perfect as expected. it returns 22. Odd, I expected 21: echo (11 + 10) a = a + 1 -- Jon Dowland http://alcopop.org/

« previous php.internals (#21587) next »