@@ 179-185 (lines=7) @@ | ||
176 | ||
177 | $isxml = FALSE; |
|
178 | $jxml = ""; |
|
179 | if (strpos($result, '<?xml')>-1) { |
|
180 | $xml = simplexml_load_string($result); |
|
181 | //$jxml = json_encode($xml); |
|
182 | $jxml = self::object2array($xml); |
|
183 | $isxml = TRUE; |
|
184 | } |
|
185 | ||
186 | $code = curl_getinfo($ch, CURLINFO_HTTP_CODE); |
|
187 | curl_close($ch); |
|
188 | ||
@@ 266-271 (lines=6) @@ | ||
263 | $isxml = FALSE; |
|
264 | $jxml = ""; |
|
265 | ||
266 | if (strpos($result, '<?xml')>-1) { |
|
267 | $xml = simplexml_load_string($result); |
|
268 | $jxml = json_encode($xml); |
|
269 | $isxml = TRUE; |
|
270 | } |
|
271 | ||
272 | $code = curl_getinfo($ch, CURLINFO_HTTP_CODE); |
|
273 | curl_close($ch); |
|
274 |