joecooper Posted May 6, 2008 Share Posted May 6, 2008 how do i do a range for IF statement? like... IF($number between 1 and 10){ bla bla... } Link to comment https://forums.phpfreaks.com/topic/104428-if-number-between-range/ Share on other sites More sharing options...
Asheeown Posted May 6, 2008 Share Posted May 6, 2008 <?php if($Number > 0 and $Number < 11) { // Do something } ?> Link to comment https://forums.phpfreaks.com/topic/104428-if-number-between-range/#findComment-534577 Share on other sites More sharing options...
joecooper Posted May 6, 2008 Author Share Posted May 6, 2008 ahh... simple as Link to comment https://forums.phpfreaks.com/topic/104428-if-number-between-range/#findComment-534583 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.