note 77395 deleted from function.each by nicobn

From: Date: Fri, 18 Feb 2011 16:05:09 +0000
Subject: note 77395 deleted from function.each by nicobn
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-177117@lists.php.net to get a copy of this message
Note Submitter: manz_2007 at yahoo dot com ---- We have an array like this : $aField = array("eid" => "c", "name" => "l", "department" => "l", "hire_date" => "d", "hire_date" => "sd", "actives" => "i"); we want to walking every value like : eid => c name => l department => l hire_date => d hire_date => sd actives => i but when using foreach($aField as $key => $value) { echo "$key, $value"; } or using print_r($aField); its look like this: eid => c name => l department => l hire_date => sd actives => i BTW, the hire_date => d as we expected is missing... Anybody can resolve this matter ? Thanks Man'z

« previous php.notes (#177117) next »