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? Quote 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 ?> Quote 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 Quote 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.. Quote Link to comment https://forums.phpfreaks.com/topic/139065-echoing-html-coding/#findComment-727333 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.