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?

  1. strupper() and strlower()
  2. str_toupper() and str_tolower()
  3. toupper() and tolower()
  4. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.