note 106023 deleted from language.operators.increment by hholzgra

From: Date: Thu, 02 Aug 2012 15:24:46 +0000
Subject: note 106023 deleted from language.operators.increment by hholzgra
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-189859@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- Notice the different output of the following two for-loops. <?php for ($i='a'; $i<='y'; $i++) { echo "$i "; } ?> This one will output the characters 'a' to 'y'. <?php for ($i='a'; $i<='z'; $i++) { echo "$i "; } ?> This second one will output the characters 'a' to 'z' AND after that the strings 'aa', ..., 'az', 'ba', ..., 'bz', 'ca', ... and so on to 'yz'.

« previous php.notes (#189859) next »