来自php.net的示例提供以下内容
<?php
$food = array('fruits' => array('orange', 'banana', 'apple'),
'veggie' => array('carrot', 'collard', 'pea'));
// recursive count
echo count($food, COUNT_RECURSIVE); // output 8
// normal count
echo count($food); // output 2
?>
如何从 $food 数组(输出 3)中独立获得水果的数量和蔬菜的数量?