I have an array that looks like this when I print_r($mytest);
My question is how to get out only test1 instead of the whole array?PHP Code:Array ([0] => Array ([test1] => 1st test[test2] => 2nd test))
Printable View
I have an array that looks like this when I print_r($mytest);
My question is how to get out only test1 instead of the whole array?PHP Code:Array ([0] => Array ([test1] => 1st test[test2] => 2nd test))
$mytest[0]['test1']
left of the => is the key, which is what you refer too inside the brackets