【发布时间】:2011-07-17 20:55:48
【问题描述】:
所以,我有一个包含在index.php 中的sidebar.php。在某种情况下,我想让sidebar.php 停止运行,所以我想把exit 放在sidebar.php 中,但这实际上会退出它下面的所有代码,这意味着index.php 中include('sidebar.php'); 下的所有代码都会也被跳过。有没有办法让exit 只跳过sidebar.php 中的代码?
【问题讨论】:
标签: php