I am making a simple zip code lookup for rates. The code below functions, basically if the first 3 characters from $zipcode are "962" ( or whatever is determined ) it echos the text. Is there a way to clean this up?
How can I make $zipcode look through a array to see if any of the conditions are true?
if (substr($zipcode, 0, 3) === '962' || substr($zipcode, 0, 3) === '963' || substr($zipcode, 0, 3) === '964' || substr($zipcode, 0, 3) === '964' || substr($zipcode, 0, 3) === '965' || substr($zipcode, 0, 3) === '966') {
echo "We do not ship FPO";
}