<? $str = 'Your string here'; $chr = ord('�'); foreach(str_split($str) as $v) $fS .= ((ord($v) != $chr)?$v:''); //Result is in $fS var_dump($fS); ?>