note 97581 rejected from function.implode by visualmind

From: Date: Tue, 27 Apr 2010 07:50:44 +0000
Subject: note 97581 rejected from function.implode by visualmind
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-168697@lists.php.net to get a copy of this message
Note Submitter: Kate at example dot com ---- if(count($topping) > 5) { array_push($validationOrderErrors, "Can not chosse " . count($topping) . " kinds of topping. ". "The max choices is 5."); $isOrderInfoValid = false; } else if(count($topping) < 1) { array_push($validationOrderErrors, "Pizza topping must be specified."); $isOrderInfoValid = false; } else { $toppingValue = implode(", ", $topping); array_push($validInfo, "<li>Pizza topping: " . $toppingValue . "</li>"); array_push($validPassInfo, $toppingValue); }

« previous php.notes (#168697) next »