is it possible to run str_ireplace without it destroying the original casing?
For instance:
$txt = "Hello How Are You";
$a = "are";
$h = "hello";
$txt = str_ireplace($a, "<span style='background-color:#EEEE00'>".$a."</span>", $txt);
$txt = str_ireplace($h, "<span style='background-color:#EEEE00'>".$h."</span>", $txt);
this all works fine, but the result outputs:
[hello] How [are] You
instead of:
[Hello] How [Are] You
(square brackets being the color background)
Thanks.