PHP and HTML formatting, super basic question

whoknow

New Member
I got to a phase in my code where I have too much code and too much HTML is depended on the consequences of some server conditions.I simply want to know, is there any way to get around the:\[code\]<?php if (cond) echo '<p class="someclass">some HTML</p>'; ?> \[/code\]?I just wish there was something like in C where you can simply go like:\[code\]#ifdef x do_a_lot_of_html_stuff;#endif\[/code\]All I can see that I can do now is go like: \[code\]<?php if (x) require_once("includes/all_needed_part.php"); ?>\[/code\]Thanks !
 
Top