Assigning HTML value to PHP variable - best practice?

Posted by waitinforatrain on Stack Overflow See other posts from Stack Overflow or by waitinforatrain
Published on 2010-05-31T00:22:18Z Indexed on 2010/05/31 0:32 UTC
Read the original article Hit count: 544

Filed under:
|

Right now I'm assigning HTML to a variable the usual way:

$var = <<<END
<blah>...</blah>
END;

The big disadvantage is that my IDE won't treat this as HTML, and so it won't highlight the code. Is there a way to do it that will keep the HTML outside of the <?php ?> tags so that code highlighting will work?

© Stack Overflow or respective owner

Related posts about php

Related posts about html