base64_encode
Description
The base64_encode of URL for PHP encodes data with MIME base64.
Syntax
base64_encode( string $string ): string
Parameters
string
The data to encode.
Return
The encoded data, as a string.
Examples
1 · return
<? $string = 'This is an encoded string'; $return = base64_encode($string); echo $return; ?>
VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==