Re: HTML PHP Presentation and Logic



You could use templates, like smarty. If that's overkill, what I always
is put html-output in seperate functions.

function print_foo($var) {
return '<html />';
}

function foo($a,$b) {
...
print_foo($c);
...
}

.