Re: Is "Function Constants" the Correct Term?
| From: | Curt Zirzow | Date: | Sat, 17 Jul 2004 22:15:10 +0000 |
| Subject: | Re: Is "Function Constants" the Correct Term? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190862@lists.php.net to get a copy of this message | ||
* Thus wrote gohaku:
> Hi everyone,
> I have been experimenting with defining functions as constants.
> Below is what I am using to test "Function Constants":
>
> <pre>
> <?
> define(LOGIN,"user");
> define(PASS,"pass");
> define(DB,"mysql");
>
> define(DBLOGIN,dblogin(LOGIN,PASS,DB));
This is simply not allowed.
see:
http://php.net/define
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!