PHP 对POST数据的处理

// 获取body中json数据并初始化为数组
$data = json_decode(file_get_contents('php://input'), true);

posted @ 2016-08-16 08:44  bobo-bobo  阅读(738)  评论(0)    收藏  举报