【发布时间】:2015-03-21 16:36:23
【问题描述】:
在 PHP 中,当我编写时
$string="\thello world\t"
echo trim($string);
这会输出hello world。但是,当我在 HTML 表单输入字段中输入相同的字符串并发布到服务器时,行为会发生变化。
echo trim($_POST["string"];
以上代码输出\thello world\t
有什么区别?
【问题讨论】:
标签: php post escaping special-characters forms