control structure question

From: Date: Tue, 23 Jul 2002 14:03:50 +0000
Subject: control structure question
Groups: php.general 
Request: Send a blank email to php-general+get-109082@lists.php.net to get a copy of this message
is there a more programmatically elegant way of saying... $isError = ""; function main() { doStep1(); if (!$isError) {
       doStep2();
} if (!$isError) {
       doStep3();
} // etc. etc. } function doStep1() { if ($something) {
       $isError = 1;
} } function doStep2() { if ($something) {
       $isError = 1;
} } _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com

« previous php.general (#109082) next »