2015-03-15 php-func-note PHP函数笔记 PHP函数笔记 小心坑 http_build_query 会对参数做 urlencode(),项目中做sign时,被坑过; 你不知道的事 json_decode($post,true) 第二个参数能保证解析出来时array格式 file_get_contents(‘php://input’) 当你使用 $_POST $_GET 甚至是 $_REQUEST 得不到内容时,$post = file_get_contents(‘php://input’); 得到 http body内容