* 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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to