<?php $s = "Foo money bar"; echo preg_replace("/(office|rank|money)/i", '<strong>' . ucfirst('$1') . '</strong>', $s);
You have javascript disabled. You will not be able to edit any code.