ul($list[, $attributes = ''])
Parameters:
$list (array) – List entries
$attributes (array) – HTML attributes Returns:
HTML-formatted unordered list Return type:
string
Permits you to generate unordered HTML lists from simple or multi-dimensional arrays. Example:
$list = array(
'red',
'blue',
'green',
'yellow'
);
$attributes = array(
'class' => 'boldlist',
'id' => 'mylist'
);
echo ul($list, $attributes);
The above code will