Class containing several utility or helper functions.
Function to parse an array of given parameters.
Utils::escape_params(array $params, int $flags = 4) : string
Array of strings.
One or multiple OR-ed together of the following:
string
string
Function to "convert" int or array to a pos or range argument
Utils::pos_or_range( $p) : mixed
mixed
int|string
Function to parse an MPD error string to an array
Utils::parse_error(string $error) : FloFaber\MphpD\MPDException
The error string. For example "ACK [error@command_listNum] {current_command} message_text"
FloFaber\MphpD\MPDException
\MPDException