note 16093 added to function.trim
| From: | thibs at thibs dot com | Date: | Tue, 16 Oct 2001 12:16:51 +0000 |
| Subject: | note 16093 added to function.trim | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-18976@lists.php.net to get a copy of this message | ||
To erase space just at the beginning of the string, use :
$string = eregi_replace("^[[:space:]]+", "", $string);
--
http://www.php.net/manual/en/function.trim.php
http://master.php.net/manage/user-notes.php?action=edit+16093
http://master.php.net/manage/user-notes.php?action=delete+16093
http://master.php.net/manage/user-notes.php?action=reject+16093