A

Admin • 832.27K Points
Coach

Q. What does the PHP function trim() do?

  • (A) Removes whitespace from the beginning and end of a string
  • (B) Removes all spaces inside a string
  • (C) Removes tabs only
  • (D) Removes newline characters only
  • Correct Answer - Option(A)
  • Views: 21
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

trim() removes whitespace or other predefined characters from both ends of a string.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.