Display the drop-down list

count()

« cosh | count_chars »
<?php
$int 
count (
    
// mixed $array_or_countable
    
?  // [int $mode = COUNT_NORMAL]
);
?>
Result
$int = 3
Examples
#1 count  ([=> 1=> 3=> 5])
#2 count  ([=> 7=> 910 => 11])
#3 count  (null)
#4 count  (false)
#5 count  (["fruits" => [=> "orange"=> "banana"=> "apple"], "veggie" => [=> "carrot"=> "collard"=> "pea"]],
 
COUNT_RECURSIVE)
#6 count  (["fruits" => [=> "orange"=> "banana"=> "apple"], "veggie" => [=> "carrot"=> "collard"=> "pea"]])
See also
PDOStatement::columnCount, PDOStatement::rowCount, array_count_values, count_chars, gmp_popcount, is_array, mb_substr_count, mhash_count, str_word_count, strlen, substr_count