Re: Removing Leading Spaces
| From: | pete M | Date: | Wed, 28 Apr 2004 15:00:18 +0000 |
| Subject: | Re: Removing Leading Spaces | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-184884@lists.php.net to get a copy of this message | ||
U could also use the php trim() function when insert/update to database 2
Ed Curtis wrote:
I sort some DB fields by a city name and some of my clients have figured out that if they place a space in front of the city their record will jump to the top. How can I strip leading spaces from this variable at entry without stripping any spaces in the city name (like Crown Point). Thanks, Ed