public function header($text, $line = null) {
		if (!$line) {
			$line = strlen($text);
		}
		$this->hr($line);
		$this->out($text, 'heading');
		$this->hr($line);
	}
public function header($text, $line = null) {
		if (!$line) {
			$line = strlen($text);
		}
		$this->hr($line);
		$this->out($text, 'heading');
		$this->hr($line);
	}
public function header ( $ text , $ line = null ) { if ( ! $ line ) { $ line = strlen ( $ text ) ; } $ this -> hr ( $ line ) ; $ this -> out ( $ text , 'heading' ) ; $ this -> hr ( $ line ) ; }
Writes a header to the output stream. In addition to the actual text,
horizontal lines before and afterwards are written. The lines will have
the same length as the text. This behavior can be modified by providing
the length of lines as a second paramerter.

Given the text `'Lithium'` this generates following output:

```
-------
Lithium
-------
```

@param string $text The heading text.
@param integer $line The length of the line. Defaults to the length of text.
@return void
Writes a header to the output stream . In addition to the actual text horizontal lines before and afterwards are written . The lines will have the same length as the text . This behavior can be modified by providing the length of lines as a second paramerter .