Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
$arr = array(
'a'=>'b'
'b'=>'c'
'c'=>'d'
'd'=>'e'
'e'=>'f'
'f'=>'g'
);
echo count($arr);
function count_strings($array) {
$count = 0;
foreach ($array as $item) {
if (is_string($item))
$count++;
}
return $count;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question