Case insensitive str_replace
| From: | Valentin V. Petruchek | Date: | Thu, 10 Jan 2002 18:52:52 +0000 |
| Subject: | Case insensitive str_replace | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-80061@lists.php.net to get a copy of this message | ||
Hello list.
Need you help.
My aim is to str_replace ($word,"<b>$word</b>",$str). But: i want
str_replace not to differ uppers and lowers:
Rector => <b>Rec</b>tor
after str_replace ('rec',"<b>rec</b>","Rector") in other
words.
It seemes to me ereg can help, but i'm still not good at it. Help please
Valentin Petruchek (aki Zliy Pes)
http://zliypes.com.ua
mailto:val@zliypes.com.ua