$sentence = "Android is increasingly becoming a much better mobile platform than iOS";
$search = "android";
// To highlight the word 'Android' without losing the capital A when you spit it back out on screen:
$highlighted_sentence = preg_replace("/($search)/i", "<span class='highlight'>$1</span>", $sentence);
← Force or Remove WWW from URL