note 77395 deleted from function.each by nicobn

[email protected] Fri, 18 Feb 2011 08:05:09 -0800
Newsgroups php.notes
Message-ID <[email protected]>
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