Ds\Map::isEmpty

(PECL ds >= 1.0.0)

Ds\Map::isEmptyReturns whether the map is empty

Açıklama

public Ds\Map::isEmpty ( void ) : bool

Returns whether the map is empty.

Değiştirgeler

Bu işlevin değiştirgesi yoktur.

Dönen Değerler

Returns TRUE if the map is empty, FALSE otherwise.

Örnekler

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

<?php
$a 
= new \Ds\Map(["a" => 1"b" => 2"c" => 3]);
$b = new \Ds\Map();

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

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

bool(false)
bool(true)