Re[2]: [PHP] Displaying one of three functions.

From: Date: Mon, 28 Oct 2002 14:30:35 +0000
Subject: Re[2]: [PHP] Displaying one of three functions.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-121697@lists.php.net to get a copy of this message
Hello Steve, oh my fault...i apologize...this should work....i shouldn't use break ;) if {$country!="finland"){ display_shipping(calculate_nonfinland_cost($country)); } elsif ($country=="finland" && $express=="no") { display_shipping(calculate_shipping_cost($weight)); } elseif ($country=="finland" && $express=="yes") { display_shipping(calculate_express_cost($express)); } or (from my point of view is this better) if {$country!="finland") : display_shipping(calculate_nonfinland_cost($country)); elsif ($country=="finland" && $express=="no") : display_shipping(calculate_shipping_cost($weight)); elseif ($country=="finland" && $express=="yes") : display_shipping(calculate_express_cost($express)); endif; again i apologize... -- Best regards, Martin mailto:corwin@corwin.sk

« previous php.general (#121697) next »