Re: Is "Function Constants" the Correct Term?
| From: | John W. Holmes | Date: | Sat, 17 Jul 2004 22:08:07 +0000 |
| Subject: | Re: Is "Function Constants" the Correct Term? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190863@lists.php.net to get a copy of this message | ||
Curt Zirzow wrote:
* Thus wrote gohaku:damn... I had just rewritten my entire application to use this!! -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.comHi 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