hi guys, how to get first and last (key and value) array multidimesional below?
$data1 = array(
array(
'0'=>array(
'7'=>'chelsea',
'8'=>'everton',
'9'=>'villa',
'10'=>'liverpool'
),
array(
'23'=>'milan',
'24'=>'inter',
'25'=>'juventus',
),
),
'1'=>array(
array(
'53'=>'madrid',
'54'=>'barcelona',
'55'=>'altetico',
'56'=>'everton',
),
array(
'243'=>'milan',
'244'=>'inter',
'245'=>'juventus',
),
),
'2'=>array(
array(
'523'=>'madrid',
'524'=>'barcelona',
'525'=>'altetico',
'526'=>'everton',
),
array(
'223'=>'milan',
'224'=>'inter',
'225'=>'juventus',
),
)
);
i want yield like this:
Array
(
[0] => Array
(
[0] => Array
(
[7] => chelsea
[10] => liverpool
)
[1] => Array
(
[23] => milan
[25] => juventus
)
)
[1] => Array
(
[0] => Array
(
[53] => madrid
[56] => everton
)
[1] => Array
(
[243] => milan
[245] => juventus
)
)
[2] => Array
(
[0] => Array
(
[523] => madrid
[526] => everton
)
[1] => Array
(
[223] => milan
[225] => juventus
)
)
)