+ 18
Why one?
Wht it was s 1 https://code.sololearn.com/wHR0dBKrYt0V/?ref=app
3 Answers
+ 3
When the parameter is neither an array nor an object with implemented Countable interface, 1 will be returned.
https://www.php.net/manual/en/function.count.php#refsect1-function.count-returnvalues
+ 11
So "count" count elements in array only, if it is not array it display 1?