Ds\Map::isEmpty
(PECL ds >= 1.0.0)
Ds\Map::isEmpty — Returns whether the map is empty
参数
此函数没有参数。
示例
示例 #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());
?>以上示例的输出类似于:
bool(false) bool(true)
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
