title: convert json Array to single Json Object
body: <p>I was wonder whether it is possible to convert a json Array to a single json object in php?</p>
  
  <p>I mean below json Array:</p>
  
  <pre><code>[{'x':'y','k':'l'}, {'q':'w', 'r':'t'}] 
  </code></pre>
  
  <p>Can be converted to:</p>
  
  <pre><code>{'0':{'x':'y','k':'l'}, '1':{'q':'w', 'r':'t'}}
  </code></pre>