$generator
$generator
For HTML generation convenience funcs.
element(string $tag, string $contents, array $attr = array(), bool $escape = true) : string
Prints a complete element with content inside
string | $tag | Tag name |
string | $contents | Element contents |
array | $attr | Tag attributes |
bool | $escape | whether or not to escape contents |