标题:[实践OK]php – $_POST空格转换为下划线,php会自动将$_GET数组的key中的点转换成下划线。 出处:向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除 时间:Sun, 06 Feb 2022 00:18:55 +0000 作者:jackxiang 地址:https://jackxiang.com/post/11209/ 内容: curl -v -d'1)杰克。 2)杰克\r\n3)杰克东 3)你是谁 "a" "b" [空行的空格全是下划] 4)jack ' x.xxxx.com }elseif("POST" == $method){ print_r(key($_POST)); $textcontents = trim(key($_POST)); $filename=date("Ymd")."pasted_textcontents".date("His").".txt"; $file = fopen("./tmp/".$filename,"w");//打开文件准备写入 fwrite($file,$textcontents);//写入 @chmod($file,0600); fclose($file);//关闭 die($filename); 来自:https://blog.csdn.net/zhaozhi406/article/details/11131971 https://www.xknote.com/blog/1127037.html Generated by Jackxiang's Bo-blog 2.1.1 Release