String Handling - searching, replacing, formatting, string library functions - Online Test
30:00
1. Which PHP function is used to find the position of the first occurrence of a substring within a string?
2. What does the PHP function `strlen()` return?
3. Which function is used to replace all occurrences of a substring with another substring in PHP?
4. What is the primary purpose of the `explode()` function in PHP?
5. Which PHP function converts a string to all uppercase letters?
6. The `str_split()` function in PHP divides a string into an array of:
7. Which function returns a part of a string, starting from a specified position?
8. What is the difference between `strpos()` and `stripos()` in PHP?
9. Which function pads a string to a certain length with another string?
10. What does `md5()` function do in PHP?
Test Results
0/0