Re: Whacky increment/assignment logic with $foo++ vs ++$foo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux