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