php去除字符串(空格,换行,反斜杠)

stripslashes(trim(str_replace(array("\r\n", "\r", "\n", " ","'"), "", $strng)))
原文地址:https://www.cnblogs.com/bkhdd/p/15792348.html