HttpRequestService::xml_decode PHP Method

xml_decode() public static method

* XML decode
public static xml_decode ( $data, $toArray = false )
$data String
$toArray boolean, true for make it be array
    public static function xml_decode($data, $toArray = false)
    {
        /* TODO: What to do with 'toArray'? Just write it as you need. */
        $data = simplexml_load_string($data);
        return $data;
    }