forumnz Posted December 31, 2007 Share Posted December 31, 2007 In an if statement, how do I say that if something == numbers 3-9 then do something? I have this so far: if ($region == 3-9) { $r = "r1"; } I know the above is wrong, but you get the idea. Thanks, Sam. Link to comment https://forums.phpfreaks.com/topic/83878-solved-selecting-numbers-from-3-9/ Share on other sites More sharing options...
kenrbnsn Posted December 31, 2007 Share Posted December 31, 2007 You want to do: <?php if ($region >= 3 && $region <= 9) ?> If it's greater than equal to 3 and less than or equal to 9. Ken Link to comment https://forums.phpfreaks.com/topic/83878-solved-selecting-numbers-from-3-9/#findComment-426853 Share on other sites More sharing options...
forumnz Posted December 31, 2007 Author Share Posted December 31, 2007 Thanks! Link to comment https://forums.phpfreaks.com/topic/83878-solved-selecting-numbers-from-3-9/#findComment-426859 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.