- get_defined_constants: documentation ( source)
- is_scalar: documentation ( source)
- constant: documentation ( source)
<?php
$data = get_defined_constants();foreach ($data as $constant => $value) { $flag = ! is_scalar(constant($constant)) && ! is_resource(constant($constant)) && constant($constant) !== null; if ($flag) { echo $constant; }}