PHP | 인코딩, 디코딩 json_encode, base64_encode

|

function ajax_encode($value)
{
    $result = base64_encode(json_encode($value));
    return $result;
}

function ajax_decode($value)
{
    $result = json_decode(base64_decode($value));
    return $result;
}

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

클릭하여 복사