I have a variable in php, print_r:
Array (
[0] => Array (
[0] => Array (
[sum(`Lgsl`.`players`)] => 7769
)
)
)
And I have a few such arrays with similiar structure. What is the easiest way to get 7769 number from it without referencing to string-key in latest array.
The function array_values returns a list of all values with a numeric index, so that you can access the first and only element via index
0. Thelistkeyword can extract array elements into separate variables.