主页
PHP
PHP empty() 函数
tryphp_func_var_empty
运行 ❯
×
更改方向
保存代码
更改主题
<?php $a = 0; // True because $a is empty if (empty($a)) { echo "Variable 'a' is empty.
"; } // True because $a is set if (isset($a)) { echo "Variable 'a' is set."; } ?>