Why does some php code echo out the html?

Andy

New member
I am no expert so maybe i am missing something obvious but, as far as i can see you can switch from php to html on one page without having to echo the html like,

<html><body>

<?php

//do stuff

?>

<table><./table>

<?php

//more php

?>

</body></html>

but in some php code i see,

<?php

echo '<html><body>';
echo '<table></table';

//other php code

echo '</body></html>';

?>
 
Back
Top