Jump to content

Number Range in if Statement


jason360

Recommended Posts

Hey guys,

 

I am not sure how to do a proper range in my if statement.  I need a range where count is between 1 and 10.  I am using this statement below, but it is just considering the $count<=10 and 0 is included in this statement.  I require a different function for $count = 0.

 

Thanks in advance!

if ($count <= 10 && $count >= 1)
Link to comment
https://forums.phpfreaks.com/topic/294389-number-range-in-if-statement/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.