ltrim removes spaces on the left
rtrim removes spaces on the right
trim removes spaces on both the left and right

Larry Jeannette
MIS Director, e.Republic


-----Original Message-----
From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 05, 2001 11:08 AM
To: PHP User Group
Subject: [PHP] getting info.. help!


Hello,

Is there a way to remove all the spaces in the beginning of a string?

Example:

"   45 fasfda asdfasf"  would be "45 fasfda asdfasf"

and

" 45 fasfda asdfasf" would be "45 fasfda asdfasf"

No matter how many spaces in the begging in I just want it to delete the
first spaces.

I hope you can understand. :Þ

Thank you,

--------------------------------------------
Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.com
--------------------------------------------


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to