note 3626 modified in each by ronabop

From: Date: Wed, 18 Oct 2000 05:00:22 +0000
Subject: note 3626 modified in each by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-6629@lists.php.net to get a copy of this message
As of PHP 4.0b3, the interpreter's not quite smart enough to manage the following: while(list($k,$v)=each(array("first","second","third")) { Instead, use: $ary=array("first","second","third"); while (list($k,$v)=each($ary)) { http://www.php.net/manual/function.each.php

« previous php.notes (#6629) next »