php – 如何打印多维数组?

$list=array('Andaman and Nicobar'=>array( 'North and Middle Andaman', 'South Andaman', 'Nicobar' ), 'Andhra Pradesh' => array( 'Adilabad', 'Anantapur',));

以…的形式

[['North and Middle Andaman', 'South Andaman', 'Nicobar'],['Adilabad', 'Anantapur']]
$tmp = json_encode($list);
echo $tmp;
相关文章
相关标签/搜索