sizeof

It an alias of count() and returns the number of elements

Example

<?php
$lan = array(“PHP”,”JSP”,”ASP”);
echo sizeof($lan);
?>

Output

3

Share