php中的 file_get_contents(‘php://input’)用法

php中的 file_get_contents('php://input')用法:

file_get_contents 获取php页面中input内容的值;

 

eg:

    php: 页面提交了username password (123)

    那么接收之后:username=123&password=123

 

与POST的区别:post是数组键值对的方式。

posted @ 2017-05-15 10:45  刘俊涛的博客  阅读(2546)  评论(0编辑  收藏  举报