HumHub Documentation (unofficial)

Base64Encoder
in package
implements EncoderInterface

Tags
author

Chris Corbyn

Table of Contents

Interfaces

EncoderInterface

Methods

encodeString()  : string
Takes an unencoded string and produces a Base64 encoded string from it.

Methods

encodeString()

Takes an unencoded string and produces a Base64 encoded string from it.

public encodeString(string $string[, string|null $charset = 'utf-8' ][, int $firstLineOffset = 0 ][, int $maxLineLength = 0 ]) : string

Base64 encoded strings have a maximum line length of 76 characters. If the first line needs to be shorter, indicate the difference with $firstLineOffset.

Parameters
$string : string
$charset : string|null = 'utf-8'
$firstLineOffset : int = 0

if first line needs to be shorter

$maxLineLength : int = 0
  • 0 indicates the default length for this encoding
Return values
string

        
On this page

Search results