嗨我使用PHP来编程我的网站,我一直在阅读有关preg_match的负载,并尝试大量的例子。我想要做的是像下面的东西...preg_match并删除字符串中的多个字符?
if(preg_match('These characters'), $myVariable, matches)){
Find and remove found characters from $myVariable;
}
我很确定这是显而易见的PHP专家,但它让我坚持了几个小时的尝试和阅读。
在此先感谢
使用'preg_replace'或'preg_replace_callback'。 – DCoder