"; $attr = null; foreach ($attributes as $value) { if($value[1]) $attr .= ' '.$value[0].'="'.$value[1].'"'; } return "<$tag$attr>"; } function single ($tag, &$attributes) { if($attributes == null) return "<$tag />"; $attr = null; foreach ($attributes as $value) { if($value[1]) $attr .= $value[0].'="'.$value[1].'" '; } return "<$tag $attr/>"; } // template for end tags function close ($tag) { return ""; } function template_end() { return null; } } //END class XHTML_output ?>