Home Menu

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==

Internal

base64_decode

External

PHP

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms