简单教程
提交运行
代码编辑器:
<?php $cars = array( "Volvo" => array("XC60","XC90"), "BMW" => array("X3", "X5"), "Toyota"=>array("Highlander") ); echo "Normal count: " ,count($cars), "<br>"; echo "Recursive count: " , count($cars,1);
运行结果: