note 15099 deleted from control-structures.for by didou

From: Date: Mon, 17 Jan 2005 17:52:30 +0000
Subject: note 15099 deleted from control-structures.for by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-83515@lists.php.net to get a copy of this message
Note Submitter: ben at dailystaple dot com ---- unlike C++ you can't increment in the same way: for($i=1; $i <= sizeof($array); $i+2){...} loops infinitely, you have to say for($i=1; $i <= sizeof($array); $i+=2) {...}

« previous php.notes (#83515) next »