Index Documentation

Base64
in package

FinalYes

Provides a Base64 serialiser.

Table of Contents

Methods

decode()  : string|false
Decodes a Base64 string back to binary data.
encode()  : string
Encodes binary data as a Base64 string.

Methods

decode()

Decodes a Base64 string back to binary data.

public static decode(Stream|string $input) : string|false
Parameters
$input : Stream|string

Input Base64 string.

Return values
string|false

Binary data.

encode()

Encodes binary data as a Base64 string.

public static encode(Stream|string $input) : string
Parameters
$input : Stream|string

Input binary data.

Return values
string

Base64 string representing the binary data.


        
On this page

Search results