![]() |
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 |
well,
PHP Code:
|
To delete a part of the array use
unset:php Code:
|
php.net/unset
PHP Code:
PHP Code:
|
| All times are GMT. The time now is 10:19 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0