How do you make something like between? I want it so that if a variable is between 1 and 9, it outputs one thing, between 10 and 99 another, and if it is over 100, it outputs another. Something like if $code > 0 and < 9..... Could someone please help me, Thanks, BP
if($code >=100){ echo "above 100"; }elseif(($code>=10) and ($code<=99)){ echo " 10 - 99"; }elseif(($code>=1) and ($code<=9)){ echo "0 -9"; }else{ echo "This is not a number "; } PHP: -Ravish