title: Get some data using json decode
body: <p>I have array like this</p>
  
  <pre><code>$result = "{
    "datas": "www",
    "data": {
      "id": 1153
    }
  }";
  
  $get = json_decode($result);
  </code></pre>
  
  <p>I want to get id in object data. I use <code>$param = "data-&gt;id"</code> but it doesn't work and I get an error <code>Undefined property: stdClass::$data-&gt;id</code>
  , but if I get datas by using <code>$param = "datas"</code>, it works.
  to get data I use <code>return $get-&gt;$param</code> .</p>
  
  <p>How to get id ? sorry for my english.</p>