opensrs\Request::convertFormatted2array PHP 메소드

convertFormatted2array() 공개 메소드

public convertFormatted2array ( $type = '', $data = '' )
    public function convertFormatted2array($type = '', $data = '')
    {
        $resultArray = '';
        if ($type == 'json') {
            $resultArray = json_decode($data, true);
        }
        if ($type == 'yaml') {
            $resultArray = Spyc::YAMLLoad($data);
        }
        return $resultArray;
    }