$value) { $result .= sprintf ('
%s%s', $key, $value); } if ($result) { return '' . $result . '
'; } } public static function orderedList (array $list) { $result = ''; foreach ($list as $value) { $result .= sprintf ('%s', htmlentities ($value)); } if ($result) { return '' . $result . '
'; } } }