[nycphp-talk] more on &$var in function
Michael Southwell
southwell at dneba.com
Fri Sep 5 10:45:41 EDT 2003
Thanks for responses to my question about the need for global $var within a
function whose parameter is &$var (unnecessary; function is operating
directly on the original because of the &).
Now this raises another question. Given the above, in those cases where a
function is intended to operate on a global variable--and only those cases,
why wouldn't you *always* define the parameter with & instead of using a
global statement?
Michael G. Southwell =================================
DNEBA Enterprises
81 South Road
Bloomingdale, NJ 07403-1419
973/492-7873 (voice and fax)
southwell at dneba.com
http://www.dneba.com
======================================================
More information about the talk
mailing list