TIL count() has a second parameter that returns a recursive element count. I mean, how would I know given it's only been around since #PHP 4? 🤦
(This fits with my belief that even if you think you know everything about a topic the documentation will always teach you something new.)

@gozzy if any documentation didn't teach me something knew I would be concerned about how am I using my time.

20% of the docs tend to be enough to do 80% of the job.

An update; using the second parameter of count() does not work with objects that have the Countable interface. That is by design, the second parameter is only supported with arrays. If you have an object that supports Countable you can use iterator_count() instead but that does mean it needs to be Traversable as well. Fun! #PHPTips
@gozzy Neat. Didn't know you could do that.
@shawnhooper Glad it's not just me! 😁
@gozzy I didn’t know this either 😅
@gozzy now you tell me! 🤷‍♂️