📜  php 数组所有键为空 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:47.297000             🧑  作者: Mango

代码示例1
array('key1' => null, 'key2' => null, 'key3' => null, 'key4' => null)
if (!array_filter($array)) {
    // all values are empty (where "empty" means == false)
}