note 84209 deleted from function.sizeof by mgf

From: Date: Mon, 07 Jul 2008 12:30:35 +0000
Subject: note 84209 deleted from function.sizeof by mgf
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-141231@lists.php.net to get a copy of this message
Note Submitter: Lee ---- When looping, it's often possible to simply go backwards so that sizeof() is only called once. For example... <?php for ( $vIndex = sizeof( $vHugeArray ) - 1; $vIndex >= 0; $vIndex-- ) { // code } ?>

« previous php.notes (#141231) next »