RE: [PHP] removing characters from beginning of string
| From: | Craig Vincent | Date: | Tue, 11 Jul 2000 19:57:42 +0000 |
| Subject: | RE: [PHP] removing characters from beginning of string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5997@lists.php.net to get a copy of this message | ||
> --- Jason Bryner <jason@focusdesigngroup.com> wrote:
> > I have the following string and I need to remove the
> > first comma and leave
> $new_string = ereg_replace("^,", "", $string);
That would not work...that would require the comma being at the beginning of
the string...which is not what the original poster asked for. The original
poster just wants the first comma removed...there's no indication where this
comma will reside in the string.
Sincerely,
Craig Vincent