The Number of Elements in an Array in PHP
The number of elements in an array in PHP can be
found using the count function.
See the example:
<?php
$arr = ['a', 'b', 'c'];
echo count($arr);
?>
Code execution result:
3
The number of elements in an array in PHP can be
found using the count function.
See the example:
<?php
$arr = ['a', 'b', 'c'];
echo count($arr);
?>
Code execution result:
3