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

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