protected function renderAttributes($attributes)
    {
        if (count((array) $attributes) == 0) {
            return '';
        }

        $return = [];

        foreach ($attributes as $key => $value) {
            $return[] = $key . '="' . $value . '"';
        }

        return ' ' . implode(' ', $return);
    }
protected function renderAttributes($attributes)
    {
        if (count((array) $attributes) == 0) {
            return '';
        }

        $return = [];

        foreach ($attributes as $key => $value) {
            $return[] = $key . '="' . $value . '"';
        }

        return ' ' . implode(' ', $return);
    }
protected function renderAttributes ( $ attributes ) { if ( count ( ( array ) $ attributes ) == 0 ) { return '' ; } $ return = [ ] ; foreach ( $ attributes as $ key => $ value ) { $ return [ ] = $ key . '="' . $ value . '"' ; } return ' ' . implode ( ' ' , $ return ) ; }
Renders an HTML attribute from an associative array

@param   array $attributes Associative array of attributes

@return  string The HTML attribute string

@since   2.1
Renders an HTML attribute from an associative array