![]() |
rtrim() and ltrim()
I understand that rtrim() strips all of the white spaces from the end of a string, and ltrim() strips all of the white spaces from the beginning of a string. But if there are white spaces in the middle of a string will it strip them also? I don't want this to happen....
Would you use the functions like this: PHP Code:
|
Quote:
Quote:
PHP Code:
The $ character denotes a variable and the *trims are functions. |
And if you want to strip both leading and trailing white space there's plain old trim.
PHP Code:
|
| All times are GMT +1. The time now is 01:48 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.