array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'ds-pair.isempty.php', 1 => 'Ds\\Pair::isEmpty', ), 'up' => array ( 0 => 'class.ds-pair.php', 1 => 'Ds\\Pair', ), 'prev' => array ( 0 => 'ds-pair.copy.php', 1 => 'Ds\\Pair::copy', ), 'next' => array ( 0 => 'ds-pair.jsonserialize.php', 1 => 'Ds\\Pair::jsonSerialize', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ds/ds/pair/isempty.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(No version information available, might only be in Git)
Ds\Pair::isEmpty — Returns whether the pair is empty
この関数にはパラメータはありません。
例1 Ds\Pair::isEmpty() example
<?php
$a = new \Ds\Pair("a", 1);
$b = new \Ds\Pair();
var_dump($a->isEmpty());
var_dump($b->isEmpty());
?>
上の例の出力は、 たとえば以下のようになります。
bool(false) bool(true)