← All built-ins / base64_decode()

base64_decode()

base64_decode(string $s): string

Parameters

NameTypeDescription
$sstringBase64 text

Return value

The decoded raw bytes; invalid characters are skipped.

Example

echo base64_decode("aG9seSBwaHA=");
holy php

See also

base64_encode()