title: How to decode json array in square bracket under curly bracket
body: <p>I am unable to get array data between square bracket under curly bracket. This is json output:</p>
  
  <pre><code>{"data":{"user":[{"transaction":"45455","date":"2013-10-28" }],"msg":"ok"},"error":[]}
  </code></pre>
  
  <p>I have tried this:</p>
  
  <pre><code>$obj = json_decode($json_data, true);
  $user_data_array = $obj['data']['user'];
  </code></pre>
  
  <p>But I am unable to get data in user array. Waiting for you quick reply and thanks in advance.</p>