News, Reviews, Gadget Database
There are 4 PHP Functions we can use to remove whitespace characters from the beginning and/or the end of a string :
1. trim() – Remove white space characters from the beginning and the end of a string.
2. ltrim() – Remove white space characters from the beginning of a string.
3. rtrim() – Remove white space characters from the end of a string.
4. chop() – Same as rtrim().