如果一切正常,php 中有什么东西可以停止或让脚本继续执行吗?
在我当前的脚本中,我喜欢这样(对于这个例子):
$fetch = false;
if($i == 10){
echo 'I is clear'
$fetch = true;
}
if($fetch){
//Do database work here
}
echo 'This should be seen no matter what the above';
而不是$fetch
那里,我可以做点别的吗?我不想像 die() 或 exit 那样停止整个脚本。