21,887
社区成员
发帖
与我相关
我的任务
分享
$jscode=$_POST['jscode']==""?0:$_POST['jscode'];
<?php
$var = 0;
// 结果为 true,因为 $var 为空
if (empty($var)) {
echo '$var is either 0 or not set at all';
}
// 结果为 false,因为 $var 已设置
if (!isset($var)) {
echo '$var is not set at all';
}
?>