0

Hi,

How are you doin there? I'm just doing an example here. I wanted to access all elements that our user 'George' has.

$players = array(
	'George' => array('Age'=>20, 'Hair Color'=>'Black', 'Cars'=>array('BMW', 'Toyota', 'Nissan', 'Shitty Cars lol') ),

	 'Mikayla' => array('Age'=> 16, 'Hair Color'=> 'Bruntte'),
	 
         'Mel'=> array('Age' =>21, 'Hair Color' =>'Grey')
	);
	
	echo ( "Ario's hair colour is:" .$players['George']['Hair Color'] );
	echo ("<br/>");
	echo ( "His age is:" .$players['George']['Age'] );
	echo ("<br/>");
	echo ( "His age is:" .$players['George']['Cars'][0][1][2][3] );  <<<<--- I want to do something like this. I want to access all items that our user has.

Thanks..

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by pritaeas
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.