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.
Hi,
btw what would be nice is a print_raw command that does no
parsing just sends the stuff :)
(Would be good for template systems where you know there is no php
hidden in there.) ... might gain a couple of micro seconds
PO I believe this is called breaking out of PHP mode
PO and into HTML
Hi,
Tuesday, July 8, 2003, 5:22:04 PM, you wrote:
TR Hi,
btw what would be nice is a print_raw command that does no
parsing just sends the stuff :)
(Would be good for template systems where you know there is no php
hidden in there.) ... might gain a couple of micro seconds
PO I believe this
Hi. I'm surprised you haven't been jumped on already for this one. Variables in
double-quoted and heredoc-style strings are expanded; variables in single-quoted
strings
aren't. I refer you to the excellent PHP manual -- one of the first pages you should
absorb...
Hi, again!!
I'm looking for opinions as to which is better/faster, print or heredoc.
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 against the left side of
the code. I'm pretty picky about what
: 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
Hi, again!!
I'm looking for opinions as to which is better, print or heredoc.
print makes the code layout look nice and eazy to debug, where heredoc IS faster but
makes the code look like a nightmare and I'm pretty picky about what looks good.
Robin E. Kopetzky
Black Mesa Computers/Internet
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
10 matches
Mail list logo