lunghezza php dell'array
<?php
$arr = ["one", "two", "three", "four"];
echo count($arr);
?>
lunghezza matrice php
count($myArray);
ottieni la lunghezza dell'array usando php
// using count() we can get proper length of the array
$names = array("Ankur","Raj","Ram","Suresh");
// pass array into count() as parameter it will return array length
echo count($names);
// output : 4
lunghezza matrice php
<?php
$cars=array("Volvo","BMW","Toyota");
echo count($cars);
?>
dimensione matrice php
echo count($my_array);
echo sizeof($my_array); // alias