RE: [PHP4BETA] defined() not working
| From: | Dan | Date: | Mon, 28 Feb 2000 12:44:07 +0000 |
| Subject: | RE: [PHP4BETA] defined() not working | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-11114@lists.php.net to get a copy of this message | ||
I do define it that way, but placing it in quotes for testing is, well, it's
not at all intuitive and furthermore NOT DOCUMENTED!!!
Grrrr....
How about a real const type to avoid these games? Purty please?
> if (defined ("SOME_CONSTANT")) works fine... (notice the quotes!)
>
> define it with :
> define ("SOME_CONSTANT");
>
>
> Flavien Lebarbé
> --
> Open Care.
>