note 7229 modified in each by ronabop

From: Date: Sun, 03 Sep 2000 09:57:37 +0000
Subject: note 7229 modified in each by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-4023@lists.php.net to get a copy of this message
one way to get variables out of an array dynamically, while skipping the keys is this: while( list($key,$value)=each($foo)) { if (!is_int($key)) { echo "$"."$key: $value\n"; $$key = $value; } } (the echo line is just for displaying what is variables are getting set; ie: not needed.) http://www.php.net/manual/function.each.php

« previous php.notes (#4023) next »