public function div string id style if style style style style if id i

1
2
3
4
5
6
7
8
9
public function div($string, $id = '', $style='') {
if ($style != '') $style = " style='$style'";
if ($id != '') $id = " id='$id'";
echo "<div class='$string' $id $style>\r\n";
}
public function nodiv() {
echo "</div>\r\n";
}