Quiz on PHP Strings



1. What function is used to get the length of a string in PHP?
2. Which of the following functions is used to concatenate two strings in PHP?
3. How do you access a specific character in a string using its index in PHP?
4. What is the result of the function str_replace('world', 'PHP', 'Hello world!')?
5. Which function is used to convert a string to lowercase in PHP?

Advertisements