php count example
Example 1: php length of array
<?php
$arr = ["one", "two", "three", "four"];
echo count($arr);
?>
Example 2: count php
$cars = array("Volvo","BMW","Toyota");
echo count($cars); // 3
<?php
$arr = ["one", "two", "three", "four"];
echo count($arr);
?>
$cars = array("Volvo","BMW","Toyota");
echo count($cars); // 3