[development] How Can I Set ang Get Variables

James Walker walkah at walkah.net
Fri Nov 10 03:29:15 UTC 2006


On 9-Nov-06, at 9:10 AM, Konstantin Käfer wrote:

>
> Am 09.11.2006 um 12:45 schrieb AjK:
>
>> http://uk.php.net/manual/en/function.define.php
>>
>> define("MYVARNAME", 'some name');
>> define("MYVARDEFAULT", 0);
>>
>> and then everywhere else.....
>>
>> $x = variable_get(MYVARNAME, MYVARDEFAULT);
>
> Wow, variable constants... That's amazing!

Next up: we're gonna slice bread!
--
James Walker :: http://walkah.net/ :: xmpp:walkah at walkah.net





More information about the development mailing list