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.

參數(shù)

此函數(shù)沒有參數(shù)。

返回值

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)