- var_dump: documentation ( source)
- constant: documentation ( source)
- define: documentation ( source)
<?php
define('CONSTANT', 1);
define('_CONSTANT', 0);
define('EMPTY', '');
var_dump(CONSTANT);
$a = '5';
if (!empty(constant('EMPTY'))) {
if (!(boolean) _CONSTANT) {
echo 1;
}
} else if (constant('CONSTANT') == 1) {
echo 2;
}