5.1. Creating and Accessing Strings5.1.1. Including More Complex Expressions within Strings5.1.2. Using Your Own Delimiters5.1.3. Other Ways to Create Strings5.1.4. Finding the Length of a String5.1.5. Accessing Characters within a String5.2. Searching Strings5.2.1. Searching Strings with strstr()5.2.2. Locating Text with strpos() and strrpos()5.2.3. Finding the Number of Occurrences with substr_count()5.2.4. Searching for a Set of Characters with strpbrk()5.3. Replacing Text within Strings5.3.1. Replacing All Occurrences using str_replace()5.3.2. Replacing a Portion of a String with substr_replace()5.3.3. Translating Characters with strtr()5.4. Dealing with Upper- and Lowercase5.5. Formatting Strings5.5.1. General-Purpose Formatting with printf() and sprintf()5.5.2. Using Type Specifiers5.5.3. Specifying Signs5.5.4. Padding the Output5.5.5. Specifying Number Precision5.5.6. Swapping Arguments5.5.7. Storing the Result Instead of Printing It5.5.8. Trimming Strings with trim(), ltrim(), and rtrim()5.5.9. Padding Strings with str_pad()5.5.10. Wrapping Lines of Text with wordwrap()5.5.11. Formatting Numbers with number_format()5.6. Summary5.7. Exercises