Hitung array dalam PHP
<?php
$vegetables = ["Cabbage", "Carrot", "Lettuce"];
$arrayLength = count($vegetables);
echo $arrayLength; //returns 3
?>
Outstanding Lioncatcher
<?php
$vegetables = ["Cabbage", "Carrot", "Lettuce"];
$arrayLength = count($vegetables);
echo $arrayLength; //returns 3
?>