javascript - PHP - How to avoid "echo" HTML when there is a need for conditional html blocks for example -
echoing html blocks in php pain, echoed parts not marked , parsed ide's since it's string. deficiency makes difficult edit , change echoed html (especially javascript). wonder if there elegant solution except using include in such cases.
here example using alternative if-syntax:
<?php if($a == 5): ?> <p>a=5</p> <?php endif; ?>
Comments
Post a Comment