public static function GetSoapArrayFromArray($objArray) { if (!$objArray) { return null; } $objArrayToReturn = array(); foreach ($objArray as $objObject) { array_push($objArrayToReturn, Sharedetails::GetSoapObjectFromObject($objObject, true)); } return unserialize(serialize($objArrayToReturn)); }