Re: Break, Exit, Die, Kill, Maime and Stab

From: Date: Wed, 02 Jul 2003 21:29:02 +0000
Subject: Re: Break, Exit, Die, Kill, Maime and Stab
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-153785@lists.php.net to get a copy of this message
I have thought about that but most of the information is not switchable. I use the code mostly for checking if a list of variables have been setup correctly. Thanks though. Jonathan On Wednesday, July 2, 2003, at 04:23 PM, Jeff Harris wrote:
On Jul 2, 2003, "Jonathan Pitcher" claimed that: |I have some scripting that includes files. The included files are |executed and everything works great. | |The included page needs to check multiple information. | |Currently if I want the scripts to end correctly I have to: [snip] |I would love to: | |if() |{ | //Blah | break; |} | |and have that break only stop the rest of the execution of the include |file but allow the script that included it to finish running. | |I have tried break, exit and die with no luck. Even tried break 1; and |break 2; to break out of levels but that didn't seem to work either. | |Is there a solution or should I continue to do what I have done. | |Thanks in advance, | |Jonathan Pitcher Perhaps you might want to rewrite your code using the switch? http://www.php.net/switch -- Registered Linux user #304026. "lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import" Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED Responses to this message should conform to RFC 1855. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#153785) next »