class MMBR_Formatter
{
private $head = "\n\n";
private $foot = "\n";
private $buf;
public function add($hash)
{
$this->buf .= "\n";
$ak = array_keys($hash);
sort($ak);
while ($k = array_shift($ak))
{
$this->buf .= "\t<" . $k . ">" . htmlentities($hash[$k]) . "" . $k . ">\n";
}
$this->buf .= "\n";
}
public function dump()
{
return $this->head . $this->buf . $this->foot;
}
}
?>