Re: Re: define constants within functions?
| From: | Justin Patrin | Date: | Wed, 11 Aug 2004 16:36:30 +0000 |
| Subject: | Re: Re: define constants within functions? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193470@lists.php.net to get a copy of this message | ||
On Wed, 11 Aug 2004 06:54:35 -0500, Jay Blanchard
<jay.blanchard@niicommunications.com> wrote:
> [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?
>
Yes, it is global. The OP was not calling his function.
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder
paperCrane --Justin Patrin--