given the following 3 dimensional array as an example:
Array
(
[324] => Array
(
[0] => Array
(
[workid] => 324
[wname] => Y quiero llegar a más / Para triunfar en la vÃa
[recordingid] => 476
[rname] => Y quiero llegar a más / Para triunfar en la vÃa
[rsubname] => Fandangos sevillanos
)
)
[325] => Array
(
[0] => Array
(
[workid] => 325
[wname] => Ya basta
[recordingid] => 479
[rname] => Ya basta
[rsubname] =>
)
)
[326] => Array
(
[0] => Array
(
[workid] => 326
[wname] => Y sin embargo te quiero
[recordingid] => 563
[rname] => Y sin embargo te quiero
[rsubname] =>
)
[1] => Array
(
[workid] => 326
[wname] => Y sin embargo te quiero
[recordingid] => 562
[rname] => Y sin embargo te quiero
[rsubname] => (continuación)
)
[2] => Array
(
[workid] => 326
[wname] => Y sin embargo te quiero
[recordingid] => 478
[rname] => Y sin embargo te quiero
[rsubname] =>
)
)
)
i want to pick the first array of the 3 dimensional array and assign it to another array, let's call it $arr_first
the outpout of $arr_first should look like this
Array
(
[workid] => 324
[wname] => Y quiero llegar a más / Para triunfar en la vÃa
[recordingid] => 476
[rname] => Y quiero llegar a más / Para triunfar en la vÃa
[rsubname] => Fandangos sevillanos
)
Sure i could loop through and get what i want. But i need to know What is the most elegant and fastest way to achieve this whithout looping the entire array?
EDIT: The array is just an example... it's hard coded. The key values could change. So i need to get the first array independent on id