Skip to content


PHP and EOF

Do u usually mix your PHP with html. In that case you probably have a lot of 'echo's. You also must escape the " characters. There is a simpler way to do things. Use the php EOF.

PHP:
  1. print <<<eof
  2. //place your html code here
  3. eof;
  4. ?>

Posted in php.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.