Re[3]: [PHP] print vs heredoc

2003-07-08 Thread alex
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

Re[3]: [PHP] print vs heredoc

2003-07-08 Thread Tom Rogers
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>>

Re[2]: [PHP] print vs heredoc

2003-07-08 Thread Tom Rogers
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

Re: [PHP] print vs heredoc

2003-07-07 Thread Philip Olson
> 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.

Re: [PHP] print vs heredoc

2003-07-07 Thread Tom Rogers
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

Re: [PHP] print vs heredoc

2003-07-07 Thread Joel Rees
> 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

RE: [PHP] print vs. heredoc

2003-07-07 Thread Ralph Guzman
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

[PHP] print vs heredoc

2003-07-07 Thread Sparky Kopetzky
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

Re: [PHP] print vs. heredoc

2003-07-06 Thread Greg Donald
> 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

[PHP] print vs. heredoc

2003-07-06 Thread Sparky Kopetzky
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