嗨,我有一个多维 l 数组。
Array
(
[1] => Array
(
[38] => Fashion Retail | Fashion Accessories
)
[10] => Array
(
[194] => Automotive | 4x4
[206] => Automotive | Aftermarket Parts and Kits
[201] => Automotive | ATVs
)
)
我想获取第一个子数组的键,在这种情况下1
,我可以使用foreach
循环获取它。
foreach($myarry as $key=>$val)
有没有办法在没有循环的情况下实现这一点,请帮忙。提前致谢