PHP替换掉字符串中的非字符

echo preg_replace("/^\W+/","","$^&*&*(())fdsafdsa");
原文地址:https://www.cnblogs.com/abinxm/p/1494945.html