List Info

Thread: note 78356 added to language.constants




note 78356 added to language.constants
user name
2007-10-08 06:52:58
I had a question about Define; and I can't find it here.
What if I want to define that something can be two things? 

For example:

define ("ADMIN_USERNAME", X);

And then I want that X is either Admin or Webchicken. I
tried a few things but nothing is working, can someone help
me with this, or is what I want imposible?
----
Server IP: 83.137.20.107
Probable Submitter: 195.240.168.173
----
Manual Page -- h
ttp://www.php.net/manual/en/language.constants.php
Edit        -- https://master
.php.net/note/edit/78356
Del: integrated  -- h
ttps://master.php.net/note/delete/78356/integrated
Del: useless     -- http
s://master.php.net/note/delete/78356/useless
Del: bad code    -- htt
ps://master.php.net/note/delete/78356/bad+code
Del: spam        -- https:/
/master.php.net/note/delete/78356/spam
Del: non-english -- 
https://master.php.net/note/delete/78356/non-english
Del: in docs     -- http
s://master.php.net/note/delete/78356/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/78356
Reject      -- https://mast
er.php.net/note/reject/78356
Search      -- https://
master.php.net/manage/user-notes.php

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


note 78356 deleted from language.constants by betz
user name
2007-10-08 08:11:23
Note Submitter: Webchicken 

----

I had a question about Define; and I can't find it here.
What if I want to define that something can be two things? 

For example:

define ("ADMIN_USERNAME", X);

And then I want that X is either Admin or Webchicken. I
tried a few things but nothing is working, can someone help
me with this, or is what I want imposible?

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


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )