public static function toAttributeString(array $arr = null): string
    {
        $ret = "";
        if ($arr !== null) {
            foreach ($arr as $k => $v) {
                $ret .= " $k=\"$v\"";
            }
        }
        return $ret;
    }
public static function toAttributeString(array $arr = null): string
    {
        $ret = "";
        if ($arr !== null) {
            foreach ($arr as $k => $v) {
                $ret .= " $k=\"$v\"";
            }
        }
        return $ret;
    }
public static function toAttributeString ( array $ arr = null ) : string { $ ret = "" ; if ( $ arr !== null ) { foreach ( $ arr as $ k => $ v ) { $ ret .= " $k=\"$v\"" ; } } return $ ret ; }
Create an attribute string from an associative array

@param array<string,string|integer|float>|null $arr
@return string
Create an attribute string from an associative array