Home › Forums › Back End › php variable problems › Re: php variable problems
January 10, 2011 at 12:14 pm
#66722
clokey2k
Participant
Darn, I thought I had close. Variable scopes have always forced me crazy. I have just read the man pages include section which agrees with you @gno.
Variables that are in an included file inherit the scope in the original document calling it. So if the file is included as part of a function, then variables would not be available outside of the function. Hopefully that has set me straight!
I also hope that I have not added confusion to the original issue. Maybe representing some code here could help diagnose the issue a little further?