how ot check array lenth in php code example
Example 1: php array length
count($myArray);
Example 2: php array length
<?php
$names = array("Ankur","Raj","Ram","Suresh");
echo count($names);
$cars=array("Volvo","BMW","Toyota");
echo count($cars);
// test