title: Removing a outer array from JSON object - PHP
body: <p>I have fetched Google Analytics profiles from my account, and returned an JSON object to my view. But I want to convert this object.</p>
  
  <pre><code>[
      {
          Account A: {
              xxxxxxxx: "All Web Site Data"
          }
      },
      {
          Account B: {
              xxxxxxxx: "All Web Site Data"
          }
      }
  ]
  </code></pre>
  
  <p>to this</p>
  
  <pre><code>{
      Account A: {
          xxxxxxxx: "All Web Site Data"
      }
  },
  {
      Account B: {
          xxxxxxxx: "All Web Site Data"
      }
  }
  </code></pre>
  
  <p>How can i do this using PHP.</p>