SplEnum::getConstListReturns all consts (possible values) as an array. Description
public array SplEnum::getConstList
([ bool
$include_default = false
] )
Warning
This function is currently not documented; only its argument list is available. Parameters
Return Values
Examples
Example #1 SplEnum::getConstList example
<?php The above example will output: array(3) { ["__default"]=> bool(false) ["false"]=> bool(false) ["true"]=> bool(true) } |