Php/docs/ds-pair.isempty

提供:Dev Guides
< Php
2020年12月14日 (月) 12:59時点におけるNotes (トーク | 投稿記録)による版 (autoload)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

Ds\Pair::isEmpty

(No version information available, might only be in Git)

Ds\Pair::isEmptyReturns whether the pair is empty


説明

public Ds\Pair::isEmpty ( ) : bool

Returns whether the pair is empty.


パラメータ

この関数にはパラメータはありません。


返り値

Returns true if the pair is empty, false otherwise.


例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)