## Useful PHP functions highlight_string() When displaying PHP code on a website, the highlight_string() function can be really helpful: It outputs or returns a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax highlighter Usage: '); ?> str_word_count() This handy function takes a string as a parameter and return the count of words, as shown in the example below. Usage: ?php $str = "How many words do I have?"; echo str_word_count($str); //Outputs 5 ?> levenshtein() Ever find the need to determine how different (or similar) two words are? Then levenshtein() is just the function you need. This function can be super useful to track user submitted typos. Usage: