title: PHP JSON Encode and JSON Decode
body: <p>This is my json data, I want to do decode this json data and store the json data in any variable in php,
  and also I required to encode this json data on PHP. please anyone can help me </p>
  
  <pre><code>    {  
         "code":0,
         "message":"sucess",
         "user_id":"1",
         "firstname":"mugunthan",
         "lastname":"ssss",
         "user":{  
            "fname":"mugunthan",
            "lname":"ssss"
         },
         "data":[  
            {  
               "add":"added",
               "sub":"subtract"
            }
         ]
      }
  </code></pre>