Is there any reason not to echo content like this:
<!--Some content up here-->
<?php if($variable === true) { ?>
<span>Some Content</span>
<img src="some_img.png" alt="img"/>
<?php ;} ?>
<!--Some more content down here-->
Or should I be directly echoing everything that is dynamic?