how to get the length of php array code example
Example 1: php array length
count($myArray);
Example 2: php array lenght
<?php
$cars=array("Volvo","BMW","Toyota");
echo count($cars);
?>
count($myArray);
<?php
$cars=array("Volvo","BMW","Toyota");
echo count($cars);
?>