array("XC60","XC90"), "BMW" => array("X3", "X5"), "Toyota"=>array("Highlander") ); echo "Normal count: " ,count($cars), "
"; echo "Recursive count: " , count($cars,1);