Forum Moderators: coopster
If I was given the following array:
$array = array(
"alpha" => "apple",
"beta" => "orange",
"gamma" => "grape");
I could print any one of the elements by it's key, for example:
echo $array["beta"];
I can also find how many different keys there are by using count, for example:
count($array);
But say I don't know the name of the keys, but I do know there are three different ones, would it be possible to call one up but it's order? Say the first or second key?
Pseudo Code:
echo $array[Second Key];
Thanks