In HTML5 how to know the total number elements present in an array?
Answers
Answered by
0
The count() function returns the number of elements in an array.
SYNTAX==> count(array,mode);
EXAMPLE==>
<!DOCTYPE html>
<html>
<body>
<?php
$cars=array("Volvo","BMW","Toyota");
echo count($cars);
?>
</body>
</html>
Similar questions