Select every first array value in associative array
I dynamically create this associative file array through a PHP script, and now I am wondering how do I select all values inside the root array? I'll explain here in code.
This is the array that is currently getting generated everytime:
From here, how do I select every first value? As in selecting
And not anything that is inside these arrays.
I have searched but everytime it's not quite what I would like.
$names = array_filter(array_keys($data)); print_r($names);
$keys = array_keys($array);