What is the best way to do a string insensitive replace? Currently I am doing:
I would encourage you to use eregi_replace function that uses regular expressions.
$text = eregi_replace("([gr])", "<b>\\1</b>", $text);
Ville
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php