hi i have a multidimensional l array .
Array
(
[1] => Array
(
[38] => Fashion Retail | Fashion Accessories
)
[10] => Array
(
[194] => Automotive | 4x4
[206] => Automotive | Aftermarket Parts and Kits
[201] => Automotive | ATVs
)
)
i want to get the first sub array's key , in this scenario it is 1
, i can get it using a foreach
loop .
foreach($myarry as $key=>$val)
is there any way to achieve this with out looping , please help . thanks in advance