View Single Post
Old 09-18-2007, 04:35 PM   #10 (permalink)
Karl
The Reckoner
Advanced Programmer Top Contributor 
 
Karl's Avatar
 
Join Date: Sep 2007
Posts: 437
Thanks: 22
Karl is on a distinguished road
Default

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
Karl is offline  
Reply With Quote