note 16093 modified in function.trim by zak

From: Date: Tue, 16 Oct 2001 15:43:11 +0000
Subject: note 16093 modified in function.trim by zak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-18985@lists.php.net to get a copy of this message
[Editor's Note: ltrim() is a better choice for this task. You can also use rtrim() to trim from the end of the string. --zak@php.net] To erase space just at the beginning of the string, use : $string = eregi_replace("^[[:space:]]+", "", $string); --was-- 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

« previous php.notes (#18985) next »