In the code you already have the function:
PHP Code:
function makefourcelltable ($table){
echo "<table border='2'>
<tr>
<th>Chinese Fruit Tea</th>
<th>Mexican White Tea</th>
<th>Japanese Green Tea</th>
<th>British Camomille Tea</th>
</tr>";
}
Then you just need to call it from where you want to have the printout:
PHP Code:
function(value);
This will print all your <th> tags. If you call the function several times then you get several lines.