public static function alist(array $items, array $attributes = null, $tag = 'ul') {
        $output = html_writer::start_tag($tag, $attributes)."\n";
        foreach ($items as $item) {
            $output .= html_writer::tag('li', $item)."\n";
        }
        $output .= html_writer::end_tag($tag);
        return $output;
    }
public static function alist(array $items, array $attributes = null, $tag = 'ul') {
        $output = html_writer::start_tag($tag, $attributes)."\n";
        foreach ($items as $item) {
            $output .= html_writer::tag('li', $item)."\n";
        }
        $output .= html_writer::end_tag($tag);
        return $output;
    }
public static function alist ( array $ items , array $ attributes = null , $ tag = 'ul' ) { $ output = html_writer :: start_tag ( $ tag , $ attributes ) . "\n" ; foreach ( $ items as $ item ) { $ output .= html_writer :: tag ( 'li' , $ item ) . "\n" ; } $ output .= html_writer :: end_tag ( $ tag ) ; return $ output ; }
Shortcut for quick making of lists

Note: 'list' is a reserved keyword ;-)

@param array $items
@param array $attributes
@param string $tag ul or ol
@return string
Shortcut for quick making of lists