Sr. PHP Programmer Question:
Download Questions PDF

How to strip whitespace (or other characters) from the beginning and end of a string?

Answer:

The trim() function removes whitespaces or other predefined characters from both sides of a string.

Download Senior PHP Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
How will you create objects in PHP?How will you get the current date and time using PHP?