$string = str_replace(':))', 'laugh.png', $string);
$string = str_replace(':)', 'smile.png', $string);
php.net on str_replace: "If you don't need fancy replacing rules (like regular expressions), you should always use this function instead of ereg_replace() or preg_replace()."