RE: [PHP] getting info.. help!
| From: | Larry Jeannette | Date: | Mon, 05 Mar 2001 19:16:50 +0000 |
| Subject: | RE: [PHP] getting info.. help! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-42650@lists.php.net to get a copy of this message | ||
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:brandon@webintellects.com]
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
brandon@webintellects.com
800-994-6364
www.webintellects.com
--------------------------------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net