hi I want to output a large chunk of html in my php code. Should I use print() or echo? and what about quotes?
Thanks,
Zoltan
escape out of php and display the html as is
eg
<?php . . . // php code . . . ?> <html> <!-- html code --> </html> <?php . . . //back to php . . ?>
reg kevin
Thanks Kevin, but I need to generate HTML dynamically. I just wanted to know if there is any difference between them in speed or usage of quotes etc.
thanks Zoltan
http://www.phpbuilder.com/board/showthread.php?s=&threadid=10228284&highlight=single+double+quotes+speed http://www.phpbuilder.com/board/showthread.php?s=&threadid=10217887&highlight=single+double+quotes
kevinsequeira's got the right idea: if you've got a big chunk of HTML, then escape out of PHP to output it. If bits are generated by PHP, do those bits inside PHP.