|
Posted by ZeldorBlat on 06/14/07 00:03
On Jun 13, 7:23 pm, "Jon Slaughter" <Jon_Slaugh...@Hotmail.com> wrote:
> 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=\"someclass\">"
>
> or
>
> ?><div class="someclass"><?php
>
> (realize that this is just a simple example and is not meant to represent
> the actual code I will be writing)
>
> Thanks,
> Jon
In practice it won't really make any noticable difference. Do
whatever makes the code more readable and easier to maintain.
Navigation:
[Reply to this message]
|