So I am new to OOP but I've been very excited to work with it. Until today.
Here is the problem and a watered down version of the code.
I have a class
class Thing(){
static function display($part){
//it does more than this.
echo($part);
}
}
now I want to be able to use this in a script.
<html>
<body>
<table>
<tr>
<td>
<?php Thing::display('Hello world') ?>
</td>
</tr>
</table>
</body>
</html>
For some bloody reason the html that gets render like this. Thanks in advance. BTW I am using 6.3.
<html>
<body>
Hello world
<table>
<tr>
<td>
</td>
</tr>
</table>
</body>
</html>