Hi,
I'd like to know if it's possible to have a permanent global variable in PHP.... and how to do it!
Thank you
S. Breton
define('CONSTANT', 'value');
echo CONSTANT;
ok, but how do i call it from the other files?
i.e. FILE1.php contains the DEFINE statement
But in FILE2.php, if i use
it returns me:
CONSTANT
And by the way, i would like to store an array, not a single variable.
it shows the text when you havent defined the constant.
and you can't store an array in a constant
you can call for variables using either $GLOBALS or global $var anyway o_0