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

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -