我有这个网址
/Home/GetAll?{"offset":0,"rowNumber":5,"sortExpression":"ID","sortOrder":"ASC","pageNumber":1}
如何在php中单独获取偏移量和其他内容的值?
答案 0 :(得分:0)
foreach($_REQUEST as $key=>$val){
$result=json_decode($key);
$offset=$result->offset;
echo $offset;
}