<table> <tr> <td><b>Name:</b></td><td><?=$this->name?></td> </tr> <?PHP foreach($this->attributes as $attributeName => $attributeValue) { ?> <tr> <td><b><?=$attributeName?>:</b></td><td><?=$attributeValue?></td> </tr> <?PHP } ?> </table>