In this video we are going to learn about the concatenation operator and string functions which are defined in PHP. The PHP strlen() function returns the length of a string. Count The Number of Words in a String. The PHP str_word_count() function counts the number of words in a string: Reverse a String.