Constants
Posted: Thu Jun 27, 2002 1:57 am
This might sound silly, but I'd like to know if I can check if a constant is set. I have many constants that are, or are not, set according to page displayed, user input etc. once set, the value I have to keep is always the same, so using variable would be waste of everything. I've tried isset and if clauses, but always get same notice; undefined constant constant used assuming "constant" (PHP understands it as a string?)
So, is it possible, or am I forced to use variables?
So, is it possible, or am I forced to use variables?