Returns whether the pair is empty
Returns whether the pair is empty.
この関数にはパラメータはありません。
Returns true if the pair is empty, false otherwise.
true
false
例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)