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); ?> |
2
>
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); ?> |
0 comments:
Post a Comment