Re: eregi_replace multiple words
| From: | Rasmus Lerdorf | Date: | Sat, 22 Jul 2000 16:22:24 +0000 |
| Subject: | Re: eregi_replace multiple words | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7697@lists.php.net to get a copy of this message | ||
> <?
> $string1 = "I want to remove some of these words!!!";
> $string2 = eregi_replace("words want remove", "***", $string1);
> print "$string2";
> ?>
>
> I want something like that. I know that won't work. Anybody know how to
> do this?
"(words|want|remove)"
-Rasmus