$str = "2012-11-14"; $order = array("-"); $replace = ''; $newstr = str_replace($order, $replace, $str); echo 'Resultado: '.$newstr;