public static function html_inputs($options) { $output = ''; foreach ($options as $option) { $output .= '<input ' . self::html_attr($option) . ' />'; // This XML/XHTML looks spurious, but PHP's appendXML requires it elsewhere } return $output; }