-1

I have this url /Home/GetAll?{"offset":0,"rowNumber":5,"sortExpression":"ID","sortOrder":"ASC","pageNumber":1}

How do I get the value of offset and other stuff individually in php?

suman
  • 728
  • 3
  • 10
  • 29

1 Answers1

0
 foreach($_REQUEST as $key=>$val){
            $result=json_decode($key);
            $offset=$result->offset;
            echo $offset;
        }
Govind
  • 21
  • 5
  • Although this might solve the problem, a good answer requires to explain what the code is doing and why it is working. – BDL Sep 01 '15 at 07:36