base64_encode

Encodes data with MIME base64

Syntax

base64_encode ( string $data ) : string

Parameters

data

The data to encode.

Return

The encoded data, as a string.

Examples

<?

$data = 'This is an encoded string';

$return = base64_encode($data);

echo $return;

?>
VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==

base64_decode

base64_decode

get_headers

get_meta_tags

http_build_query

parse_url

rawurldecode

rawurlencode

urldecode

urlencode

PHP

Home Menu