class Helpers

Methods

static string
capture(callable $func)

Captures PHP output into a string.

static string
getLastError()

Returns the last PHP error as plain string.

static mixed
falseToNull(mixed $val)

Converts false to null.

static string|null
getSuggestion(array $possibilities, string $value)

Finds the best suggestion (for 8-bit encoding).

Details

at line 18
static string capture(callable $func)

Captures PHP output into a string.

Parameters

callable $func

Return Value

string

at line 34
static string getLastError()

Returns the last PHP error as plain string.

Return Value

string

at line 48
static mixed falseToNull(mixed $val)

Converts false to null.

Parameters

mixed $val

Return Value

mixed

at line 58
static string|null getSuggestion(array $possibilities, string $value)

Finds the best suggestion (for 8-bit encoding).

Parameters

array $possibilities
string $value

Return Value

string|null