note 17065 rejected from function.str-replace by zak
| From: | zak@php.net | Date: | Sat, 24 Nov 2001 10:17:35 +0000 |
| Subject: | note 17065 rejected from function.str-replace by zak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-21227@lists.php.net to get a copy of this message | ||
I'm trying to make a kind of a filter for cust words since we run a school server.
Well that's code I got for the replacement part:
$original = array('red','blue','green','yellow');
$fake=array('r#d','blu','GrEeN','YEELOW');
$news=str_replace($original,$fake,$news); //news is a string
The problem is I can't seem to make it work. Some one help!!