Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Question about array's

$
0
0

Hey,

 

 I am trying to figure out how I can pull an array that is within an array. I have trying doing that but not getting any luck.

 

Below is an example code that I am trying to work with, but its only returning the letter "G" Any suggestions? 

$name_array = array("dog",array("cat"));
echo $name_array[0][2];


Viewing all articles
Browse latest Browse all 13200

Trending Articles