The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
What does global do when it is used inside a function. What is its purpose
|
|
#2
|
||||
|
||||
|
Globals are variables that can be used in a function but don't have to be passed. Globals are read-only, so you could modify the variable as much as you like inside the function, but it will remain untouched outside. (for example, global $DB_site).
|
|
#3
|
|||
|
|||
|
Very important read: http://www.php.net/language.variables.scope.php
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|