php 后端接受参数的方法

php 后端接受参数的方法。

很神奇的file_get_contents('php://input');
$*获取的对象*=file_get_contents('php://input');

选择对应参数的方法:
$arr=json_decode($*获取的对象*,true);//将对象转换为数组再选择参数
$arr['*对应的参数对象*']

原文地址:https://www.cnblogs.com/wilsunson/p/9438309.html