title: Multidimensional array PHP-JSON
body: <p>How to create an array in PHP that with json_encode() becomes a thing with following structure:</p>
  
  <pre><code>Array(
  [1] =&gt; Array(
      [id] =&gt; 1
      [data] =&gt; 45
  )
  [2] =&gt; Array(
      [id] =&gt; 3
      [data] =&gt; 54
  )
  );
  </code></pre>