org\Transform::decode PHP Метод

decode() публичный статический Метод

解码数据
public static decode ( string $content, string $type, boolean $assoc = true, array $config = [] ) : mixed
$content string 要解码的数据
$type string 数据类型
$assoc boolean 是否返回数组
$config array XML配置参数,JSON格式解码无此参数
Результат mixed 解码后的数据
    public static function decode($content, $type, $assoc = true, array $config = [])
    {
        self::init($type);
        return self::$handler[$type]->decode($content, $assoc, $config);
    }