PHP Sadness
phpsadness.com
phpsadness.com
I understand that array_filter takes the array first so you don't have to pass a callback if you just want to filter out empty values, but they could have designed these functions more consistently.
I forget which argument comes first when using these functions all the time.
Someone post the “JS bad” blogs again for the people in the back.
Like requiring semi-colons at the end of a block. Really?
These are all items that an experienced PHP dev will sort out, optionally work around, and really not care much about. It's fair to suggest optimizations and improvements, but plainly exhibiting incompetence leads nowhere.
Some examples, like, say
" explode() function won't split with empty string"
... seems very sought after/constructed, too. This behaviour is simply not using the function as intended, because it needs a delimiter to, well, delimit. There are other means to split any random string into random chunks. Indeed there are other means to do most things in PHP.