- get_defined_constants: documentation ( source)
- define: documentation ( source)
<?php
define('TRUE', false);
if(TRUE) echo 'Ano';
else echo 'Ne';
$constants = get_defined_constants(true);
foreach ($constants as $key => $values) {
foreach ($values as $key2 => $val) {
if ($key2 == 'TRUE') {
echo "$key\n";
}
}
}