To find the total number of elments in an array we can use count funtion.
<?php
$players = array(“Sachin”, “gambhir”, “virat”, “dhawan”);
echo “criketer count : ” . count($players); “<br>”;
?>
Output :
criketer count : 4
No comments:
Post a Comment