Utils

Class containing several utility or helper functions.

Methods

escape_params

Function to parse an array of given parameters.

Utils::escape_params(array $params, int $flags = 4) : string

Parameters

Returns string

string

pos_or_range

Function to "convert" int or array to a pos or range argument

Utils::pos_or_range( $p) : mixed

Parameters

Returns mixed

int|string

parse_error

Function to parse an MPD error string to an array

Utils::parse_error(string $error) : FloFaber\MphpD\MPDException

Parameters

Returns FloFaber\MphpD\MPDException

\MPDException

© 2023 Florian Faber