阅读背景:

是否需要在php5中通过引用传递变量?

来源:互联网 

With PHP5 using "copy on write" and passing by reference causing more of a performance penalty than a gain, why should I use pass-by-reference? Other than call-back functions that would return more than one value or classes who's attributes you want to be alterable without calling a set function later(bad practice, I know), is there a use for it that I am missing?With PHP5 using "copy on write" and passing by




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: