----- Original Message ---- > From: Ben Dunlap <bdunlap@xxxxxxxxxxxxxxxxxx> > To: Daevid Vincent <daevid@xxxxxxxxxx> > Cc: php-general@xxxxxxxxxxxxx > Sent: Fri, October 2, 2009 2:06:47 PM > Subject: Re: Whacky increment/assignment logic with $foo++ vs ++$foo > > > Can someone PLEASE explain why the developers of PHP chose this seemingly > > whacky logic? > > It mimicks C. > > Ben > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php Any language based on C has it, such as C++, Java and C#. It gives programmers/developers flexibility when to increment and use its value. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php