To find the number of elements in a PHP $array, which is faster/better/stronger?

count($array) or sizeof($array) ?

Edit

Thanks to Andy Lester, I have refined my question to mean from a multilingual perspective. The manual commenters say

“[sizeof] does not mean the same in
many other languages based on C”

Is this true?

8 Answers
8

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *