Re: replacing characters in a string
| From: | Dan Joseph | Date: | Fri, 15 Oct 2004 02:08:44 +0000 |
| Subject: | Re: replacing characters in a string | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199550@lists.php.net to get a copy of this message | ||
> This should be simple but having never have done it before and at
> deadline...help please.
>
> Need to change:
>
> user@domain
>
> to;
>
> user=domain
str_replace() is what you want...
$var = str_replace( "@", "=", $oldvar );
-Dan Joseph