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

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

        return implode($delimiter, $pairs);
    }
public static function arrayToString ( array $ array = [ ] , $ delimiter = ' ' ) { $ pairs = [ ] ; foreach ( $ array as $ key => $ value ) { $ pairs [ ] = "$key=\"$value\"" ; } return implode ( $ delimiter , $ pairs ) ; }
Convert Array to string.

@param array  $array     array to convert to string
@param string $delimiter

@throws \Exception

@return string <key1>="value1" <key2>="value2"
Convert Array to string .