<?php $str = "yossi dan daniel"; $str = str_replace("yossi", "<a href=\"http://yossi.co.il\">yossi</a>", $str); ?>