note 68766 deleted from function.reset by bjori

From: Date: Wed, 23 Aug 2006 07:39:44 +0000
Subject: note 68766 deleted from function.reset by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-116208@lists.php.net to get a copy of this message
Note Submitter: alreece45 at yahoo dot com ---- Just for reference, a rotate function that also supports false, 0, and "" as values: <?php function rotate(&$array) { $item = current($array); if(each($array) === false) { reset($array); } return $item; } ?>

« previous php.notes (#116208) next »