Home »
MCQs »
PHP MCQs
Which PHP functions are used to convert string to lowercase and uppercase?
56. Which PHP functions are used to convert string to lowercase and uppercase?
- strupper() and strlower()
- str_toupper() and str_tolower()
- toupper() and tolower()
- strtoupper() and strtolower()
Answer: D) strtoupper() and strtolower()
Explanation:
The strtoupper() function is used to convert the string to uppercase. And, strtolower() function is used to convert the string to lowercase.