Well, you can echo if you like or you can escape out of PHP whenever you need to insert HTML
take a look at this simple example
<!--
I've got some HTML up here in these parts
maybe it's my head info and begining body tags
-->
<?php
// Now I escape into PHP
if ($var == 'foo') {
// escape back to HTML
?>
<p class="cssIsFun">my variable is foo</p>
<?php
// Now I'm back into php
} elseif ($var == 'bar') {
// back to HTML
?>
<p class="cssIsFun">my variable is bar</p>
<?php
// Back to PHP
} else {
// back to HTML
?>
<p class="cssIsFun">my variable is something other than foo bar.</p>
<?php
// make sure to close that if statement
}
?>
This is just a quick example, in reality you could do this much more concisely.
However, it does show the power of escaping into and out of PHP.
WARNING:
Make sure you keep track of where you are, when escaping you can often forget curly brackets and end PHP tags