Count php array element
Posted by Raj
Count php array element
count : Count all elements in an array.
Syntax
count(array)
Example:
<?php
$arr1 = array('A','B');
echo count($arr1);
?>
Output:
2
count : Count all elements in an array.
Syntax
count(array)
Example:
<?php
$arr1 = array('A','B');
echo count($arr1);
?>
Output:
2
This entry was posted on October 4, 2009 at 12:14 pm, and is filed under
count,
count php array element,
php array element,
php array element exists
.You can leave a response, or trackback from your own site.