How to count all elements in array with PHP

1 Answer

0 votes
$arr = array('java', 'c++', 'php', 'python');

echo count($arr);
echo "\n";
echo sizeof($arr);




/*
run:

4
4

*/

 



answered Aug 12, 2020 by avibootz

Related questions

...