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

Popular posts from this blog

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -