re: Optimizing your PHP app speed VIEW POST


Use a backslash in front of standard functions

Apparently, It butthurt so much on Reddit. However, it works.

This also works: (instead of \count) (PHP 5.6 and higher)

use function count;

Yeah, I made a lot of angry redditors :p But that's not a surprise. Most of the posts on r/php or r/programming are downvoted to oblivion, at least this one got a few tens of upvotes :)

code of conduct - report abuse