Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is a user defined function that returns a value slower?

Status
Not open for further replies.

RbgoWeb

Programmer
Apr 10, 2002
91
NL
Is a user defined function that returns a value slower than when it passes the value by a reference parameter, much like in C.

Often it is more convenient for programming flow to have a function return its value. But in C, functions that return a value to the caller are slower than when it would write the value to a reference or pointer. Is this the same in PHP scripting?
 
I don't know about PHP implementation but the statement above is wrong in (most of) C implementation...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top