Re: Another stupid one...
| From: | NoWhErEMan | Date: | Thu, 15 Aug 2002 04:12:40 +0000 |
| Subject: | Re: Another stupid one... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112667@lists.php.net to get a copy of this message | ||
<?
$text = "User : liam@i-redlands.net";
$results = ereg_replace("User :", '', $text);
echo $results;
?>
I get:
liam@i-redlands.net
"Liam Mackenzie" <phplist@operationenigma.com> ¼¶¼g©ó¶l¥ó·s»D
:003a01c24410$358fd7a0$0e00a8c0@luke...
> Hey all, got another dumb question :-)
>
> Output text is as follows:
>
> User : liam@i-redlands.net
>
> I do this:
> $results = ereg_replace("User :", '', $results);
>
> I get this:
> User : liam@i-redlands.net
>
> But when I do this:
> $results = ereg_replace("User", '', $results);
>
> I get this:
> : liam@i-redlands.net
>
> How do I remove the whole "User :" without removing all the damn colons?
>
> Cheers,
> Liam
>
>
>