note 18825 deleted from function.each by didou

From: Date: Mon, 18 Aug 2003 16:01:11 +0000
Subject: note 18825 deleted from function.each by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-54597@lists.php.net to get a copy of this message
Note Submitter: d.perry@netcase.co.uk ---- Due to the way each works, if you want to use each on a serialized array, you have to unserialize it first into a temp var eg: $a=unserialize($sarray); while (list($job, $grades) = each($a)) works, but while (list($job, $grades) = each(unserialize($sarray))) { doesnt!

« previous php.notes (#54597) next »