Home > PHP & Programming > Quizzes > Practice Test: Handling Strings In PHP
Practice Test: Handling Strings In PHP
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 55% Most missed: “The functions returs the length of the first segment of the string containing ch…”
Practice Test: Handling Strings In PHP
Time left 00:00
20 Questions

1. The … function will delete all the HTML and PHP tags from the string altogether.
2. The … function finds the position of the last occurrence of a string returning its numerical position.
3. The … function will delete all the HTML and PHP tags from the string altogether.
4. The … function capitalizes the first letter of each word in a string.
5. The … function parses the string based on a predefined list of characters.
6. Which of the following characters that htmlspacechars() can convert.
i. & (ampersand)
ii. ” (double quote)
iii. ‘ (Single quote)
7. The … function performs a binary-safe, case sensitive comparison of two strings.
8. The … function finds the position of the last occurrence of a string returning its numerical position.
9. The … function capitalizes the first letter of each word in a string.
10. The … function capitalizes the first letter of the string str if it is alphabetical.
11. The … function performs a case insensitive comparison of two strings.
12. The … function parses the string based on a predefined list of characters.
13. The … function performs a binary-safe, case sensitive comparison of two strings.
14. The … is capable of reversing the text-to-html translation and vice-versa.
15. The … function converts all characters in a string to their corresponding match found in a predefined array.
16. The function … offers information regarding the total number of words found in a string.
17. The … function returns the remainder of a string beginning with the first occurrence of a predefined string.
18. The … function removes various characters from the beginning of a string, including white space, the horizontal tab(\t), newline(\n), carriage return(\r), Null(\o), and vertical tab(\xob).
19. The … function finds the position of the first case-sensitive occurrence of a substring in a string.
20. The … function returns the number of times one string occurs within another.