RE: [PHP] Re: define constants within functions?

From: Date: Wed, 11 Aug 2004 11:54:35 +0000
Subject: RE: [PHP] Re: define constants within functions?
Groups: php.general 
Request: Send a blank email to php-general+get-193443@lists.php.net to get a copy of this message
[snip] Sure, define them outside the function :) [/snip] I have not tried this (we usually place constants in a section of the code external to any function) but are you saying that if a constant is defined within the bounds of a function it is not global?

« previous php.general (#193443) next »