A little unclear about "global" keyword...
View Single Post
06-08-2008, 11:34 AM
Join Date: Apr 2008
Right, thanks, but my question was asking if this is true or if this is false:
"If I write a user-defined function, I must
name the var $sun to be a global
within the UDF
in order for it to be available to use in the function (unless I pass it to the UDF as a parameter)."
If it is TRUE, what is the rationale of having to "rename" $sun as a global within the context of a UDF?
View Public Profile
Send a private message to Dave
Find More Posts by Dave