2. Do some research before posting, you already wrote almost the whole example, so run it an see for yourself.
Robin 'Sparky' Kopetzky wrote:
Greetings!!
If you define a constant within a function, is it local or global?
Example:
function foo() { define('BAR', 0); } Robin Kopetzky Black Mesa Computers/Internet Services, LLC
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php