Re: Re[2]: [PHP] Simple: Whats wrong with this?

From: Date: Wed, 17 Mar 2004 17:28:51 +0000
Subject: Re: Re[2]: [PHP] Simple: Whats wrong with this?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-180710@lists.php.net to get a copy of this message
On Wed, 2004-03-17 at 12:19, Jason Wong wrote: > On Thursday 18 March 2004 01:07, Richard Davey wrote: > > > ++ is a _post_ increment. This means it'll returns $correct first and > > then increment it by one. There is a section in the PHP manual on this > > (search for "Incrementing/Decrementing Operators". > > Whether it's pre or post depends on whether it is placed before the variable > in question or after. > > $doo++ !== ++$doo But ++$doo === $doo++ *heheh* Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'

« previous php.general (#180710) next »