Useful string functions for PHP.