> Online tutorial : count() in php
Showing posts with label count() in php. Show all posts
Showing posts with label count() in php. Show all posts

count() in php

count() function counts the element of an array,of the properties or two properties of an array.
Syntax
count(array1,array2)
Example


<?php

$sum=array("india","pak");
// count the elements of an array
echo count($sum);

?>

Output
2