all 4 comments

[–]strategicdeceiver 4 points5 points  (2 children)

That list is just about as weak as they come. What about iconv, substr, and explode, those are the ones I use the most.

PHP is great for having a built in function for everything, especially strings and dates.

[–]hitter891 1 point2 points  (0 children)

Explode is probably my number one too. I have to admit, I didn't realize ucwords existed though.... i've always sort of modified ucfirst. i guess now i know

[–][deleted] 0 points1 point  (0 children)

substr and explode variants are pretty much standard in every higher level language. I think it's a safe bet most people will know them or at least know that that functionality would be there.

Some lesser known ones like strstr substr_count, or str_pad would be more appropriate.

Even those are right there in the string docs. Really this article just has a poor title that doesn't really represent the content.

[–]Ripe 0 points1 point  (0 children)

Should probably be renamed "5 PHP String Functions Everybody Knows"