Is there a way to exit only the php file being included?
<p>So, I have a sidebar.php that is included in the <code>index.php</code>. Under a certain condition, I want <code>sidebar.php</code> to stop running, so I thought of putting <code>exit</code> in <code>sidebar.php</code>, but that actually exits all the code beneath it meaning everything beneath <code>include('sidebar.php');</code> in <code>index.php</code> all the code would be skipped as well. Is there a way to have <code>exit</code> only skip the code in the <code>sidebar.php</code>? </p>
