title: Check if a range of numbers are within another range in PHP, or MySQL
body: <p>It would have been ideal to do what I want to do in a MySQL query but I think I maybe quite limited after looking at BETWEEN.</p>
  
  <p>So I've been looking at PHP...</p>
  
  <p>So I have 2 numbers for a property size for example 200 - 3000</p>
  
  <p>I then need to check if those 2 numbers and the range between them fall within another range, so in this example $sizemin = 500 and $sizemax = 1000</p>
  
  <p>I've looked at the range() function but I can only seem to get it partially working.</p>