Posted by nickdevx on 04/27/06 07:12
Hi
Say if I have a mixed array:
$array = array("item1", "2"=>"item2", "5", "item4key"=>"item4")
Is it possible while looping through the array (foreach ($array as
$key=>$val)) to check if an item has an explicit key specified instead
of its automatically assigned position key?
Navigation:
[Reply to this message]
|