add clear
This commit is contained in:
+2
-2
@@ -39,10 +39,10 @@ class Help extends Miniprogarampage
|
|||||||
return $json;
|
return $json;
|
||||||
}
|
}
|
||||||
$data = simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA);
|
$data = simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA);
|
||||||
if(is_array($data = json_encode($data))){
|
if(is_array($data)){
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
return json_decode($data, TRUE);
|
return json_decode(json_encode($data), TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user