![]() |
variable scope
I have a problem. Take this code for example:
PHP Code:
|
$a is defined in the local scope of blah(). glug() is using the global scope (a variable not defined in a function or class). The only way to pass $a is as an argument to glug(), or to make it global in the first place (not preferable).
|
|
All times are GMT. The time now is 08:51 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|