Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Why trim() function is used in php?

a) to remove whitespaces
b) to remove lowercase alphabet
c) to remove uppercase alphabet
d) to remove underscore

Answer: a
Explanation: This trim() function allows us to remove whitespaces or strings from both sides of a string.

Join The Discussion