To define a constant, use the format:
define(constant_name,constant_value,case_insensitive)
e.g.
define(”MYCONSTANT”,”This is the value of the constant”,false); print “Constant is ” . constant(”MYCONSTANT”); ?>
Tags: Code
1 Blogosphere technology posts for 23rd April 2008 // Apr 23, 2008 at 6:09 pm
[...] PHP: Defining Constants [...]
Name
Mail
Website
1 response so far ↓
1 Blogosphere technology posts for 23rd April 2008 // Apr 23, 2008 at 6:09 pm
[...] PHP: Defining Constants [...]
Leave a Comment