09-18-2007, 04:35 PM
|
#10 (permalink)
|
|
The Reckoner
Join Date: Sep 2007
Posts: 437
Thanks: 22
|
You define one as Wildhoney has said in the article:
PHP Code:
define('MY_CONSTANT', 'Some Value');
Then you would simply call MY_CONSTANT like any other variable, obviously excluding the $. E.g:
PHP Code:
echo "My constant contains the value:" . MY_CONSTANT;
|
|
|
|