I have to output a lot of html stuff mixed with php and I'm curious if its
better to echo the html code or stop the php parser temporarily to got into
"html mode"? Is there any drawbacks to either method?
e.g.,
echo "<div class=\"somecla ss\">"
or
?><div class="someclas s"><?php
(realize that this is just a simple example and is not meant to represent
the actual code I will be writing)
Thanks,
Jon
better to echo the html code or stop the php parser temporarily to got into
"html mode"? Is there any drawbacks to either method?
e.g.,
echo "<div class=\"somecla ss\">"
or
?><div class="someclas s"><?php
(realize that this is just a simple example and is not meant to represent
the actual code I will be writing)
Thanks,
Jon
Comment