又是会出现多个\问题,比如\\\\'你好\\\\\'这个时候可以这样处理:
<? function stripallslashes($string) { while(strchr($string,'\\')) { $string = stripslashes($string); } } ?>