Is there a way to do an case-insenative ereg_replace? This is the code I have so far (I thought the /i would make it case-insentative but doesn't)
$full_results = ereg_replace("/".$name."/i", "<span class = 'highlight'>".$name."</span>", $full_results);
Say the variable $full_results = "1. Stacey, Dave 10:00"
and the variable $name = "dave"
I want the $full_results to look like this
$full_results = "1. Stacey, <span class = 'highlight'>Dave</span> 10:00"
Is there a simple way to do this?