public static function arrayToString(array $array = [], $delimiter = ' ')
    {
        $pairs = [];
        foreach ($array as $key => $value) {
            $pairs[] = "$key=\"$value\"";
        }

        return implode($delimiter, $pairs);
    }