php如何输出多维数组? 10
$families=array("news"=>array("id"=>"1","name"=>"新闻管理","url"=>"/#1","submenus"=>array...
$families = array
(
"news" => array(
"id"=>"1",
"name"=>"新闻管理",
"url" =>"/#1",
"submenus"=>array(
"category"=>array(
"id"=>"1",
"name"=>"新闻类别",
"url" =>"/#1",
),
"add"=>array(
"id"=>"2",
"name"=>"新闻添加",
"url" =>"/#1",
),
"update"=>array(
"id"=>"3",
"name"=>"新闻更新",
"url" =>"/#1",
),
)
),
"products" => array(
"id"=>"2",
"name"=>"产品管理",
"url" =>"/#1",
"submenus"=>array(
"category"=>array(
"id"=>"1",
"name"=>"产品类别",
"url" =>"/#1",
),
"add"=>array(
"id"=>"2",
"name"=>"产品添加",
"url" =>"/#1",
),
"update"=>array(
"id"=>"3",
"name"=>"产品更新",
"url" =>"/#1",
),
)
),
); 展开
(
"news" => array(
"id"=>"1",
"name"=>"新闻管理",
"url" =>"/#1",
"submenus"=>array(
"category"=>array(
"id"=>"1",
"name"=>"新闻类别",
"url" =>"/#1",
),
"add"=>array(
"id"=>"2",
"name"=>"新闻添加",
"url" =>"/#1",
),
"update"=>array(
"id"=>"3",
"name"=>"新闻更新",
"url" =>"/#1",
),
)
),
"products" => array(
"id"=>"2",
"name"=>"产品管理",
"url" =>"/#1",
"submenus"=>array(
"category"=>array(
"id"=>"1",
"name"=>"产品类别",
"url" =>"/#1",
),
"add"=>array(
"id"=>"2",
"name"=>"产品添加",
"url" =>"/#1",
),
"update"=>array(
"id"=>"3",
"name"=>"产品更新",
"url" =>"/#1",
),
)
),
); 展开
8个回答
展开全部
var_dump
var_export($arr, true)
print_r
var_export($arr, true)
print_r
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
var_dump($families);
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
print_r($families );
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询