Associate
Im writing a class do do some mysql stuff then print out results in a table.
Is there anyway to print the resulting html code out in a well formatted way?
However the above html prints it all out in one line. I know its no biggy but I like to see nice html code.
Is there anyway to print the resulting html code out in a well formatted way?
Code:
function test()
{
$returnThis = "<table>".
" <thead>".
" <tr>".
" <th>Header 1/th>".
" <th>Header 2</th>".
" <th>Header 2</th>".
" </tr>".
" </thead>".
"</table>";
return $returnThis;
}
echo test();
However the above html prints it all out in one line. I know its no biggy but I like to see nice html code.