> count() in php ~ Online tutorial

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

Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: