return the array keys php code example
Example 1: array key value php
<?php
$age=array("Peter"=>"35","Ben"=>"37","Joe"=>"43");
foreach($age as $x=>$x_value)
{
echo "Key=" . $x . ", Value=" . $x_value;
echo "<br>";
}
?>
Example 2: php take out 2 level array key value
foreach($bigArray as $array){
foreach($array as $key=>$value){
echo $key;
}
}
#If if helps you give it Thumbs up