require_once('path/to/html_writer.php'); $list_items = array('Item 1', 'Item 2', 'Item 3'); echo html_writer::alist($list_items);
require_once('path/to/html_writer.php'); $list_items = array('Item 1', 'Item 2', 'Item 3'); echo html_writer::alist($list_items, 'ol');
- Item 1
- Item 2
- Item 3
require_once('path/to/html_writer.php'); $list_items = array( 'Item 1', array( 'Subitem 1', 'Subitem 2', ), 'Item 2', ); echo html_writer::alist($list_items);