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...
http://www.php.net/manual/en/l
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>>
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 i
> 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,
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 aga
> 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
One way to get around having to edit backslashes is to echo using single
quotes. For example:
echo '' . $variable .
'';
-Original Message-
From: Greg Donald [mailto:[EMAIL PROTECTED]
Sent: Sunday, July 06, 2003 3:48 PM
To: Sparky Kopetzky
Cc: PHP General
Subject
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 lo
> 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 t
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 Ser
10 matches
Mail list logo