$str = "abcabc"; echo $str; $pattern = "/<.*>/"; $result = preg_replace($pattern,"",$str); echo PHP_EOL; echo $result; echo PHP_EOL;