The fstrcmp library provides an fstrcmp function that returns a number between 0.0 (nothing alike) and 1.0 (identical); this can be used to suggest likely alternatives in error messages. Fuzzy comparisons for byte arrays, wide character strings, and multi-byte character strings are also available. In addition, there are integer alternatives for systems with slow floating point emulation.
PHP Emoticon Parser can replace emoticon text with HTML image tags. It can search for emoticon text characters in a given text string and replace them with equivalent emoticon images. The emoticon text and image mappings are defined in a separate script that maps emoticon names to the different equivalent representations for emoticon text symbols.