lotrfan Posted October 15, 2007 Share Posted October 15, 2007 Can I "interrupt" my script? i.e. If I wanted a variable to be a certain value, and it isn't...could I stop the rest of the script from parsing somehow? I know this could be done with functions, but with a lot of variables to pass on to a lot of functions...that would be difficult, not to mention time consuming. Any ideas? Thanks in Advance. Link to comment https://forums.phpfreaks.com/topic/73270--/ Share on other sites More sharing options...
peeps Posted October 15, 2007 Share Posted October 15, 2007 I would try the rout of assert. At least I think that is what you want to do. Link to comment https://forums.phpfreaks.com/topic/73270--/#findComment-369665 Share on other sites More sharing options...
lotrfan Posted October 15, 2007 Author Share Posted October 15, 2007 I don't think assertion functions would work...I just want to interrupt the code... Link to comment https://forums.phpfreaks.com/topic/73270--/#findComment-370167 Share on other sites More sharing options...
kenrbnsn Posted October 15, 2007 Share Posted October 15, 2007 Use exit() Ken Link to comment https://forums.phpfreaks.com/topic/73270--/#findComment-370172 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.