acctman Posted January 1, 2009 Share Posted January 1, 2009 Is there a quick way to echo section of HTML coding? I have about 30 lines of html coding and don't want to insert slashes and fix every single line so that php doesn't error. can i use something like <<<EOT or something like that? Link to comment https://forums.phpfreaks.com/topic/139065-echoing-html-coding/ Share on other sites More sharing options...
Philip Posted January 1, 2009 Share Posted January 1, 2009 Why not just <?php //php stuff here ?> HTML STUFF <?php //more php ?> Link to comment https://forums.phpfreaks.com/topic/139065-echoing-html-coding/#findComment-727329 Share on other sites More sharing options...
acctman Posted January 1, 2009 Author Share Posted January 1, 2009 Why not just <?php //php stuff here ?> HTML STUFF <?php //more php ?> that would make my coding huge, since some of the html divs data is being filled in from the database Link to comment https://forums.phpfreaks.com/topic/139065-echoing-html-coding/#findComment-727331 Share on other sites More sharing options...
.josh Posted January 1, 2009 Share Posted January 1, 2009 <<<EOT is heredoc (scroll down a bit) Dunno if that's what you really want, but yeah.. Link to comment https://forums.phpfreaks.com/topic/139065-echoing-html-coding/#findComment-727333 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.