App下载

demo_func_string_empty 在线工具

demo_func_string_empty 在线工具

<?php
$var = 0;

// Evaluates to true because $var is empty
if (empty($var)) {
    echo "$var is either 0, empty, or not set at all";
}

// Evaluates as true because $var is set
if (isset($var)) {
    echo "$var is set even though it is empty";
}
?>
运行结果