בדקתי וזה עובד מעולה. (עם return)
PHP קוד:
<?
class skin
{
function offsystem($why) {
global $lang;
return <<<EOF
<table width=75% class=border><th>{$lang['systemoff']}</th>
<tr><td>{$why}</td></tr></table>
EOF;
}
function viewcats($id,$name,$content) {
global $lang;
return <<<EOF
<table width=100% class=border><th><a href=viewnews.php?id={$id}>{$name}</a></th>
<tr><td height=75 valign=top>{$content}</td></tr></table><br>
EOF;
}
function num($num) {
global $lang;
return <<<EOF
<table width=50%><th>{$lang['thereare']} {$num} {$lang['categories']}</th></table>
EOF;
}
}
?>