array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'ds-pair.isempty.php', 1 => 'Ds\\Pair::isEmpty', 2 => 'Returns whether the pair is empty', ), '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', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Ds\Pair::isEmpty

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

Ds\Pair::isEmptyReturns whether the pair is empty

Açıklama

public Ds\Pair::isEmpty(): bool

Returns whether the pair is empty.

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

Returns true if the pair is empty, false otherwise.

Örnekler

Örnek 1 Ds\Pair::isEmpty() example

<?php
$a
= new \Ds\Pair("a", 1);
$b = new \Ds\Pair();

var_dump($a->isEmpty());
var_dump($b->isEmpty());
?>

Yukarıdaki örnek şuna benzer bir çıktı üretir:

bool(false)
bool(true)