|
-
Mar 31st, 2008, 11:47 PM
#1
Thread Starter
Frenzied Member
Make variable available inside function
I declare and set a variable ($level) on each and every page.
of course this variable is available in all my included files, so that is fine.
but just now i start including files with functions inside, and realized (after hour or two scratching my head) that such variables are not available inside my functions.
is there other ways than actually passing this variable to my functions asan argumetn to make it available in there, because this method feel pretty clumpsy to me.
cheers
Last edited by StrangerInBeijing; Apr 1st, 2008 at 12:22 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|