If I'm creating a PHP class, should I ever have a function that looks like:
<?
class test {
public function hello() {
?>
Hello
<?
}
}
?>
I know it works, but is it considered to be bad programming, like, should you avoid doing things like this?
If I'm creating a PHP class, should I ever have a function that looks like:
<?
class test {
public function hello() {
?>
Hello
<?
}
}
?>
I know it works, but is it considered to be bad programming, like, should you avoid doing things like this?