Month: November 2013

Missing PHP String Functions: contains, equals, startsWith, endsWith

PHP is great because it is easy to deploy it on pretty much any webserver. But in my opinion the language itself is not very well designed. In this post I will take a look at the PHP string functions and offer implementations of those important string functions that PHP is missing (which are endsWith, startsWith, contains and equals).
PHP and Java String functions compared: A Rant If you look at the Java String class it has all methods that one commonly needs for strings, and the method signatures are well designed.