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:
> 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"
>
look at http://www.php.net/manual/en/function.ltrim.php
or maybe
http://w
trim()
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
""Brandon Orther"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
Is there a way to remove all the spaces in
3 matches
Mail list logo