php array check length code example
Example 1: php length of array
<?php
$arr = ["one", "two", "three", "four"];
echo count($arr);
?>
Example 2: php array length
<?php
$names = array("Ankur","Raj","Ram","Suresh");
echo count($names);
$cars=array("Volvo","BMW","Toyota");
echo count($cars);
// test