发新话题
打印

textarea提交上来的表单空格被去掉了,用什么函数解决?

textarea提交上来的表单空格被去掉了,用什么函数解决?

回车用nl2br,空格呢??

TOP

stripslashes  
(PHP  3,  PHP  4  )  

stripslashes  --    Un-quote  string  quoted  with  addslashes()   
Description  
string  stripslashes  (  string  str)  


Returns  a  string  with  backslashes  stripped  off.  (\'  becomes  '  and  so  on.)  Double  backslashes  are  made  into  a  single  backslash.   

See  also  addslashes().   

来自PHP手册.

TOP

中文解释可以去http://www.hooday.com看。

TOP

发新话题