If I have an array called $animalarray with keys dog, cat, bird, can I specify which key I want to use in a foreach loop?
I'm doing something like this right now but it just returns all the values from the array
foreach($animalarray as $species=>$bird)
{
echo $bird;
}
I'd like this to only echo out the value under the key Bird, but this returns all values under all the keys.