chack array length in php code example Example: php array lenght <?php $cars=array("Volvo","BMW","Toyota"); echo count($cars); ?>