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是数组键值对的方式。

原文地址:https://www.cnblogs.com/lovebing/p/6855380.html