Re: [PHP] Performance and Function Calls

2003-03-18 Thread Noah
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

Re: [PHP] Performance and Function Calls

2003-03-18 Thread Noah
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

RE: [PHP] Performance and Function Calls

2003-03-15 Thread Jason Sheets
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

RE: [PHP] Performance and Function Calls

2003-03-15 Thread Don Read
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_

[PHP] Performance and Function Calls

2003-03-15 Thread CF High
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