I got this array output in php:
Array
(
[blabla0] => Array
(
[0] => lalala
[1] => lelele
)
[blabla1] => Array
(
[0] => lalala
[1] => lelele
)
)
If I'd like to print by associative name, it's like this: $myArray['blabla0'][0] , and it works. But I want to do like this: echo $myArray[0][0], by index...is there any way?
echo $myArray[array_keys($myArray)[0]][0];.... requires PHP >= 5.4 for the array dereferencing$arr_keys=array_keys($myArray); echo $myArray[$arr_keys[0]][0], and OP you can do that with for/foreach loops as well