This is a string example.
The length of $string is: 25
The number of words in $string is: 5
Convert $string to lowercase: this is a string example.
Convert $string to uppercase: THIS IS A STRING EXAMPLE.
Covert the first character of each word to uppercase: This Is A String Example.
This is a string function example.

The PHP string functions are part of the PHP core, and no installation is required to use these functions.
- The strlen() function returns the length of a string.
- The str_word_count() function counts the number of words in a string.
- The strtolower() function converts a string to lowercase.
- The strtoupper() function converts a string to uppercase.
- The ucwords() function converts the first character of each word in a string to uppercase.
- The str_replace() function replaces some characters with some other characters in a string.