This site is mobile accessible. Press the "Tap Here" button to use a different font-size.


Smartphone icons created by Freepik - Flaticon

PHP Arrays

Get The Length of an Array - The count() Function

3

<?php
// declare the $cars array
$cars = array("Volvo", "BMW", "Toyota");

// display length of the array
echo count($cars);
?>