note 14360 deleted from function.next by aidan

From: Date: Sat, 18 Sep 2004 04:32:27 +0000
Subject: note 14360 deleted from function.next by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-76914@lists.php.net to get a copy of this message
Note Submitter: brooke at jump dot net ---- The right way: // reset array if needed while (list($key, $value) = each($array)) { // do stuff } That has all the desirable characteristics and none of the undesirable ones. You can also use list(,$value) if you only care about the values and not the keys.

« previous php.notes (#76914) next »