Global variables
| From: | Jim | Date: | Tue, 10 Dec 2002 18:51:25 +0000 |
| Subject: | Global variables | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-24021@lists.php.net to get a copy of this message | ||
Can I define a global variable in a function and then successfully reference
it in the rest of the page? I know that globals are usually defined in the
page scope and referenced in a function by specifying them as globals, but it
seems logical that a variable can be created and given a value in a function
and then referenced after the function has been called.
--
Jim
Freedom is worth protecting