[development] How Can I Set ang Get Variables

Konstantin Käfer kkaefer at gmail.com
Thu Nov 9 14:10:38 UTC 2006


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!

Konstantin Käfer – http://kkaefer.com/




More information about the development mailing list