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