运行 ❯
获取属于您
的 PHP
服务器
×
改变方向
改变主题,暗色/亮色
前往 Spaces
<!DOCTYPE html> <html> <body> <?php $cars=array ( "Volvo"=>array ( "XC60", "XC90" ), "BMW"=>array ( "X3", "X5" ), "Toyota"=>array ( "Highlander" ) ); echo "Normal count: " . sizeof($cars)."<br>"; echo "Recursive count: " . sizeof($cars,1); ?> </body> </html>
正常计数:3
递归计数:8