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

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

Read Online Sr. PHP Programmer Job Interview Questions And Answers