base64_decode

string

Decodes a Base64-encoded string

Syntax

base64_decode(string)

Parameters

string (string)

The Base64 string to decode

Returns

string

Decoded string

Examples

Input:
base64_decode("SGVsbG8=")
Output:
"Hello"
Input:
base64_decode("dGVzdA==")
Output:
"test"
Input:
"ZGF0YQ==" | base64_decode
Output:
"data"

The base64_decode() function decodes a Base64-encoded string back to its original form.

Usage

Use base64_decode() for decoding Base64-encoded data, processing encoded API responses, or extracting data from encoded formats.