View Single Post
Old 06-05-2008, 04:16 AM   #1 (permalink)
Dave
The Acquainted
 
Dave's Avatar
 
Join Date: Apr 2008
Posts: 110
Thanks: 97
Dave is on a distinguished road
Default 2-d arrays -- issues of printing and deleting

I have an array of arrays, like so:

$arr = array(array('blue','green','yellow'),
array('fall','winter','summer'),
array('Ford','GMC','Toyota')
)


I want to print_r(), say, only the seasons and the cars, how would I do this?

Also, how could I delete one of the arrays?

Thanks for your help!

Dave
Dave is offline  
Reply With Quote