t;[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, March 15, 2003 8:25 PM
Subject: RE: [PHP] Performance and Function Calls
>
> On 15-Mar-2003 CF High wrote:
> > Hey all.
> >
> > Quick question:
> >
> > If I have a function that, say, prints o
t;
Sent: Saturday, March 15, 2003 8:46 PM
Subject: RE: [PHP] Performance and Function Calls
> Storing the results of a function in a variable and referencing the
> variable will almost always be faster, this should be no surprise
> because instead of executing the function PHP just has
Storing the results of a function in a variable and referencing the
variable will almost always be faster, this should be no surprise
because instead of executing the function PHP just has to return the
variable's value.
In #1 since you only call the function once the function is only
executed onc
On 15-Mar-2003 CF High wrote:
> Hey all.
>
> Quick question:
>
> If I have a function that, say, prints out the months in a year, and I
> call
> that function within a 10 cycle loop, which of the following is faster:
>
> 1) Have function months() return months as a string; set var
> string_
Hey all.
Quick question:
If I have a function that, say, prints out the months in a year, and I call
that function within a 10 cycle loop, which of the following is faster:
1) Have function months() return months as a string; set var
string_months = months() outside of the loop; then echo st
5 matches
Mail list logo