case insensitive replace
| From: | Gregor Jaksa | Date: | Sat, 06 Oct 2001 15:38:26 +0000 |
| Subject: | case insensitive replace | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-70223@lists.php.net to get a copy of this message | ||
Hello,
I'm trying replace $field with "[<a
href="something">$field</a>]" in
$string, but here's the problem.
If $field is for example SQL then str_replace replaces only "SQL" not "Sql"
or "sql". I tried with preg_replace but i cant find any good solution. Can
anyone help me ?
thx