note 11610 added to for

From: Date: Tue, 27 Feb 2001 12:30:30 +0000
Subject: note 11610 added to for
Groups: php.notes 
Request: Send a blank email to php-notes+get-11634@lists.php.net to get a copy of this message
even faster for people who don't care about the index order is the optimized C-like syntax: for ($i=sizeof($arr);$i--;){ ... } sizeof() is only called 1 time. ...or you can use foreach() instead. http://www.php.net/manual/en/control-structures.for.php

« previous php.notes (#11634) next »