As to which is faster is does not really matter as the speed of echo
print and heredoc is dictated by the connection speed to the
requesting client. If this is a factor in your overall operation you
can use output buffering to save the contents and output them at the end of
your script.
: PHP General
Subject: Re: [PHP] print vs. heredoc
I'm looking for opinions as to which is better, print or heredoc.
I prefer heredoc mostly because I do not enjoy editing html that is full
of
backslashes. I build up the html and only output anything at the end.
This
allows for custom
Hi, again!!
I thought I saw this post once already.
I'm looking for opinions as to which is better/faster, print or heredoc.
Well, like the guy said before, it sounds like you've
pretty much already made up your mind.
I don't use heredocs everywhere, but when I have a fairly large block of
Hi,
Monday, July 7, 2003, 11:33:38 PM, you wrote:
SK Hi, again!!
SK I'm looking for opinions as to which is better/faster, print or heredoc.
SK print makes the code layout look nice and eazy to debug, where heredoc IS faster
but makes the code look like a nightmare with everything jammed
I'm looking for opinions as to which is better, print or heredoc.
I prefer heredoc mostly because I do not enjoy editing html that is full of
backslashes. I build up the html and only output anything at the end. This
allows for custom compression, whitespace stripping, etc.
print makes
5 matches
Mail list logo