The PHP Array Length
To count the length of an array in PHP, use the
function count.
See the example:
<?php
$arr = ['a', 'b', 'c'];
echo count($arr);
?>
Code execution result:
3
To count the length of an array in PHP, use the
function count.
See the example:
<?php
$arr = ['a', 'b', 'c'];
echo count($arr);
?>
Code execution result:
3