SplEnum::getConstList
(PECL spl_types >= 0.1.0)
SplEnum::getConstList — Returns all consts (possible values) as an array.
Descrizione
public array SplEnum::getConstList
([ bool
$include_default = false
] )
Avviso
Questa funzione, al momento non è documentata; è disponibile soltanto la lista degli argomenti.
Elenco dei parametri
-
include_default -
Whether to include __default property.
Valori restituiti
Esempi
Example #1 SplEnum::getConstList() example
<?php
$bool = new SplBool;
var_dump($bool->getConstList(true));
?>
Il precedente esempio visualizzerà:
array(3) {
["__default"]=>
bool(false)
["false"]=>
bool(false)
["true"]=>
bool(true)
}
There are no user contributed notes for this page.
