note 8144 rejected from function.array by hholzgra

From: Date: Sat, 02 Mar 2002 18:08:29 +0000
Subject: note 8144 rejected from function.array by hholzgra
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-27273@lists.php.net to get a copy of this message
By the way, calling array() and then adding associative data into the array causes the array to store garbage data in the array. function foo(){ $value = "bar"; $arr = array(); $arr["key"] = $value; foreach(array_keys($arr) as $s) { printf($s); } } You might be surprised what you get, I know I was.

« previous php.notes (#27273) next »