Science, asked by jainsahil578, 1 year ago

In HTML5 how to know the total number elements present in an array?

Answers

Answered by dhruvbadaya1
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