View Full Version : global
Serge
06-05-2003, 08:37 PM
What does global do when it is used inside a function. What is its purpose
Velocd
06-05-2003, 08:43 PM
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).
filburt1
06-05-2003, 08:59 PM
Very important read: http://www.php.net/language.variables.scope.php
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.