note 54029 deleted from function.next by bjori

From: Date: Thu, 27 Apr 2006 09:59:30 +0000
Subject: note 54029 deleted from function.next by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-109844@lists.php.net to get a copy of this message
Note Submitter: mdv at inyourpocket dot com ---- use list and each instead foreach: <?php $array(1 => 'a', 2 => 'b', 3 => 'c'); while (list($k, $v) = each($array)) echo 'DEBUG: ', $k, ' - ', $v, ', next: ', current($array) !== false ? 'yes' : 'no', '<br>'; ?>

« previous php.notes (#109844) next »