+44 (0)785 715 1348
office@bogdans.co.uk

PHP – Convert objects to Arrays 0

Posted on 11, December 2013

in Category Web development


I’d suggest using sections from the sections below in order to convert with PHP from objects to Arrays

$responseXml2 = (array) $responseXml;
 $responseXml3 = array_values($responseXml2);
 $responseXml4 = $responseXml3[4];
 $responseXml5 = array_values($responseXml4);
 $responseXml6 = $responseXml5[0];
 $responseXml7 = (array) $responseXml6; 
 $responseXml8 = array_values($responseXml7);
 $responseXml9 = $responseXml8[3];
 $responseXml5 = array_values($responseXml9);
 $responseXml6 = $responseXml5[0];
 $responseXml7 = (array) $responseXml6; 
 $responseXml8 = array_values($responseXml7);
 $responseXml9 = $responseXml8[3];

0 Comments