"PHP urlsafeB64Encode()"의 두 판 사이의 차이

(새 문서: ==개요== {{DISPLAYTITLE:PHP urlsafe_b64encode()}} ;PHP urlsafe_b64encode() <syntaxhighlight lang='php' run> function urlsafe_b64encode($input) { return strtr(base64_encode($inpu...)
 
5번째 줄: 5번째 줄:
function urlsafe_b64encode($input)
function urlsafe_b64encode($input)
{
{
     return strtr(base64_encode($input), '+/', '-_'); # SGVsbG8gV29ybGQ=
     return strtr(base64_encode($input), '+/', '-_');
}
}
echo urlsafe_b64encode('Hello World');
echo urlsafe_b64encode('Hello World'); # SGVsbG8gV29ybGQ=
</syntaxhighlight>
</syntaxhighlight>



2021년 7월 19일 (월) 10:55 판

1 개요

PHP urlsafe_b64encode()
function urlsafe_b64encode($input)
{
    return strtr(base64_encode($input), '+/', '-_');
}
echo urlsafe_b64encode('Hello World'); # SGVsbG8gV29ybGQ=

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}