downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SplBool> <SplEnum
[edit] Last updated: Fri, 25 May 2012

view this page in

SplEnum::getConstList

(PECL spl_types >= 0.1.0)

SplEnum::getConstListすべての定数 (取り得る値) を配列で返す

説明

public array SplEnum::getConstList ([ bool $include_default = false ] )

警告

この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。

パラメータ

include_default

__default プロパティを含めるか否か。

返り値

例1 SplEnum::getConstList() の例

<?php
$bool 
= new SplBool;
var_dump($bool->getConstList(true));
?>

上の例の出力は以下となります。

array(3) {
  ["__default"]=>
  bool(false)
  ["false"]=>
  bool(false)
  ["true"]=>
  bool(true)
}



add a note add a note User Contributed Notes SplEnum::getConstList
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites