title: Create PHP webservice to respond to android Application in JSON format
body: <p>Previously i have used restful wcf webservices to get the data from server.But now i have to access PHP webservices.Using WCF restful webservices I used to get data as : </p>
  
  <pre><code>{ 
  
  1,books, //0th index  
  
  2,toys,  //1st index . . .
  
  }
  </code></pre>
  
  <p>but wen i am getting data from php webservice it is coming as a single array similar to the format shown below</p>
  
  <pre><code>[
  
  1,            // 0th index
  
  books,        // 1st index
  
  2,            // 2nd index
  
  toys,         // 3nd index
  
  .
  
  .
  
  .
  
  ]
  </code></pre>
  
  <p>Please tell me is is not possible in php to create a json array as it is created in WCF restful services ??
  Above shown formats are only symbolic representation of the actual data what i am getting from webservices.</p>
  
  <p>Joomla 1.7.3 and virtuemart 2.0 is used by php developer to develop webservices and also web app is created in using 1.7.3 and virtuemart 2.0 only.</p>