Re: Is "Function Constants" the Correct Term?

From: Date: Sun, 18 Jul 2004 14:28:37 +0000
Subject: Re: Is "Function Constants" the Correct Term?
Groups: php.general 
Request: Send a blank email to php-general+get-190911@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 Hi curt, Can you elaborate on what is not allowed? Are you saying defining function constants are not allowed or are you saying redefining constants are not allowed? Thanks. -gohaku

« previous php.general (#190911) next »