<?php$id=0;var_dump(empty($id));?>
结果是boolean true
<?php$id=1;var_dump(empty($id));?>
结果是boolean false