我需要一点帮助,我有多个数组类别,我需要在每个数组中获取最后一个孩子
0=>array(
"categoryName"=>"category1",
"categorySlug"=>"categorys1",
"categoryNested"=>array(
0=>array(
"categoryName"=>"category2",
"categorySlug"=>"categorys2",
"categoryNested"=>array(
0=>array(
"categoryName"=>"category3",
"categorySlug"=>"categorys3",
)
)
)
),
1=>array(
"categoryName"=>"category4",
"categorySlug"=>"categorys4",
"categoryNested"=>array()
),
例子:
需要获取category3(categoryName),category4(categoryName),数组是多维的