Global variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux