[nycphp-talk] more on &$var in function
Chris Shiflett
shiflett at php.net
Fri Sep 5 10:53:27 EDT 2003
--- Michael Southwell <southwell at dneba.com> wrote:
> why wouldn't you *always* define the parameter with & instead of
> using a global statement?
Speaking personally, it depends on whether I think the parameter is closely
related to the function and how much data is already required to be passed in.
Imagine if you need to declare 50 global variables (hypothetically speaking).
If you had to pass these all in the function call, you would probably avoid
calling that function whenever possible. :-)
Chris
=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/
More information about the talk
mailing list