- get_defined_constants: documentation ( source)
- strtolower: documentation ( source)
- define: documentation ( source)
<?php
function trues() {
foreach(get_defined_constants() as $k => $v)
if(strtolower($k) === "true") echo "$k=$v\n";
}
trues();
define('TRUE', 3);
trues();