Basic textual analysis functions for php.