ifference.
Satyam
- Original Message -
From: "Danial Rahmanzadeh" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, February 13, 2007 4:49 PM
Subject: [PHP] print() or echo
is it true that echo is a bit faster than print()? in general, when we
don't
ne
"negligible".. blarg spelling. :)
= = = Original message = = =
As referenced in the manual ( http://us2.php.net/manual/en/function.echo.php ),
check out this url:
http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40
Short story, there is a difference, but the speed difference is negliga
As referenced in the manual ( http://us2.php.net/manual/en/function.echo.php ),
check out this url:
http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40
Short story, there is a difference, but the speed difference is negligable.
If anyone cares, I prefer echo too. Not sure why. Shorter
On Tue, 2007-02-13 at 19:19 +0330, Danial Rahmanzadeh wrote:
> is it true that echo is a bit faster than print()? in general, when we don't
> need a return value, which one is better to choose?
Yes, echo is faster than print. I would suggest echo over print since it
is shorter and faster :)
Cheer
is it true that echo is a bit faster than print()? in general, when we don't
need a return value, which one is better to choose?
Cheers,
Danial Rahmanzadeh
On Tue, 26 Sep 2006 21:45:58 +1000, David Tulloh wrote:
> Google Kreme wrote:
>> On 25 Sep 2006, at 06:11 , Sancar Saran wrote:
>> ...
>>
>> If this is generating hundred of K of HTML, use ' instead of "
>>
>> (yes, it's faster).
>>
>
> I've seen this stated several times and at first glance i
On Wed, September 27, 2006 3:37 am, Sancar Saran wrote:
> Thanks for supporting, because of approaching the problem I don't want
> to
> change generate once echo one style.
>
> And I found solution like this,
> I split variable into an array and generate loop for printing, mostly
> fix the
> probl
-- Forwarded Message --
Subject: Re: [PHP] Print or Echo takes lots of time
Date: Wednesday 27 September 2006 06:37
From: Børge Holen <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
On Wednesday 27 September 2006 01:46, Richard Lynch wrote:
> On Tue, September 26, 200
On Tue, 2006-09-26 at 18:46 -0500, Richard Lynch wrote:
> On Tue, September 26, 2006 6:35 pm, Curt Zirzow wrote:
> >> I wonder what would happen if you put your swap on a RAM disk?
> >
> > I actually have done this, it works like a charm :)
> >
> > you just have to ensure swap doesn't run out... of
On Tue, September 26, 2006 6:35 pm, Curt Zirzow wrote:
>> I wonder what would happen if you put your swap on a RAM disk?
>
> I actually have done this, it works like a charm :)
>
> you just have to ensure swap doesn't run out... of course i'd only
> recomend this on a dedicated machine for like fir
On 9/26/06, Richard Lynch <[EMAIL PROTECTED]> wrote:
On Tue, September 26, 2006 12:16 pm, Børge Holen wrote:
> On Tuesday 26 September 2006 02:07, Robert Cummings wrote:
>> On Mon, 2006-09-25 at 17:39 -0600, Google Kreme wrote:
>> > I'm sitting here with 4 Gigs of RAM trying to figure out how to
On Tue, September 26, 2006 12:16 pm, Børge Holen wrote:
> On Tuesday 26 September 2006 02:07, Robert Cummings wrote:
>> On Mon, 2006-09-25 at 17:39 -0600, Google Kreme wrote:
>> > I'm sitting here with 4 Gigs of RAM trying to figure out how to
>> use
>> > it all... :-) (Me, in 2005)
>>
>> Not real
On Mon, September 25, 2006 7:11 am, Sancar Saran wrote:
> When I was check the performance of my system I found interesting
> resuts.
>
> My code stores html output into a variable. When page creation
> complete I
> printed out the variable.
>
> Problem was generation html code takes 0.5 second and
On Tuesday 26 September 2006 02:07, Robert Cummings wrote:
> On Mon, 2006-09-25 at 17:39 -0600, Google Kreme wrote:
> > I'm sitting here with 4 Gigs of RAM trying to figure out how to use
> > it all... :-) (Me, in 2005)
>
> Not really related to the post... but I find a good way to eat up 4 gigs
>
Google Kreme wrote:
> On 25 Sep 2006, at 06:11 , Sancar Saran wrote:
> ...
>
> If this is generating hundred of K of HTML, use ' instead of "
>
> (yes, it's faster).
>
I've seen this stated several times and at first glance it seems to make
sense. The double quoted version has all the \n and r
On Mon, 2006-09-25 at 17:39 -0600, Google Kreme wrote:
> I'm sitting here with 4 Gigs of RAM trying to figure out how to use
> it all... :-) (Me, in 2005)
Not really related to the post... but I find a good way to eat up 4 gigs
of RAM is to run several VMWare nodes :) Depending on what these n
On 25 Sep 2006, at 06:11 , Sancar Saran wrote:
$strPage = " yada dayda";
...
$strPage.= " another html tags";
...
$strPage.= getSqlDataAndCreateSomeHtmlCOde();
If this is generating hundred of K of HTML, use ' instead of "
(yes, it's faster).
--
I'm sitting here with 4 Megs of RAM trying to
Hi,
When I was check the performance of my system I found interesting resuts.
My code stores html output into a variable. When page creation complete I
printed out the variable.
Problem was generation html code takes 0.5 second and just
echo $strPage takes 2.0 or more second.
my code structur
H-
Thanks to all that wrote in.
Appreciate the information and have learned much, the links were most
helpful.
Happy coding everyone.
Sincerely,
-Sterling
Sterling wrote:
>
> H-
>
> Just a quick question.
>
> Is there any difference between using print or echo?
>
> >From what I have re
> -Original Message-
> From: Alexander Wagner [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 06, 2001 3:24 PM
> To: [EMAIL PROTECTED]
> Cc: PHP
> Subject: Re: [PHP] Print or Echo.
>
>
> Jeff Oien wrote:
> > "As for a print vs. echo, echo giv
See this faq :
What is the difference between echo and print?
---
http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40
regards,
philip
On Fri, 6 Apr 2001, Sterling wrote:
> H-
>
> Just a quick question.
>
> Is there any di
Jeff Oien wrote:
> "As for a print vs. echo, echo gives you more options,
> such as being able to continue output on multiple lines
> like an < you would not be able to accomplish this."
There's another difference. print() returns true on success and false
when called after a connection abort. E
> H-
>
> Just a quick question.
>
> Is there any difference between using print or echo?
>
> >From what I have read and seen there isn't any.
> Than why the two different commands?
>
> Thanks.
> -Sterling
See this:
http://www.php.net/manual/en/function.print.php
"As for a print vs. echo
> Than why the two different commands?
Simple - some people come from C which uses print ... others come from languages
that use echo. It fosters adaptation by other programmers.
--Joe
>
> Thanks.
> -Sterling
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail
H-
Just a quick question.
Is there any difference between using print or echo?
>From what I have read and seen there isn't any.
Than why the two different commands?
Thanks.
-Sterling
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
25 matches
Mail list logo