- constant: documentation ( source)
- define: documentation ( source)
<?php
define('CONSTANT', 1);
define('_CONSTANT', 0);
define('EMPTY','');
if ( !empty(constant('EMPTY')) ) {
if (!((boolean) _CONSTANT)) {
print "One";
}
}
else if (constant('CONSTANT') == 1) {
print "Two";
}