I thought you could do this in php
if ($state == "WA" ||"MT" || "OR" || ID" ||"WY" || "CA" || "NV" || "UT" || "CO" || "AZ" || "NM"){//west coast bitches!!!}else{//east coast bitch!!!}
if ($state == "WA" || $state == "MT" || $state == "OR" || $state == "ID" || $state == "WY" || $state == "CA" || $state == "NV" || $state == "UT" || $state == "CO" || $state == "AZ" || $state == "NM"){
9/29/2009 4:44:35 PM
Well, you could use an array or a regular expression.
9/29/2009 4:47:05 PM
yeah i'd do an array
9/29/2009 4:49:21 PM
I'd go with array as well.
9/29/2009 4:51:03 PM
Use an array, please.Out of curiousity, I googled the logical phrase "php if multiple conditions".http://www.google.com/#hl=en&q=php+if+multiple+conditionsFirst result:http://bytes.com/topic/php/answers/6591-checking-multiple-conditions-one-variable
9/29/2009 4:56:43 PM
an array it is
9/29/2009 4:59:05 PM
oh in_array() function, how i love you
9/29/2009 5:08:32 PM
i think you should use an array
9/30/2009 5:58:43 PM
all languages that start with p are shit
9/30/2009 6:08:24 PM
python > most
9/30/2009 6:08:54 PM
all languages with recursive acronyms in their names are awesome
9/30/2009 6:16:19 PM
i'd go with an array.
9/30/2009 7:58:06 PM
use a hash table
10/1/2009 7:25:43 PM
Generate a captcha that people have to solve to get onto your free porn website.
10/1/2009 7:49:29 PM
clearly the best thing to do in this situation would be to setup an Oracle database to store a table of states, along with their full name, the date they were accepted into the union, and all possible zip codes within the state. Have a flag for those on the left coast, and those on the right. Then open up a pooled database connection, issue a query using the SQL "IN" syntax, and evaluate the results.
10/4/2009 1:00:52 AM