title: Check if time is between two times PHP
body: <p>From an API we get two times in this format:</p>
  
  <pre><code>starttime: 700
  endtime:   030
  </code></pre>
  
  <p>I need to know if the current time is between those times.
  But when using for example: </p>
  
  <pre><code>current_time = date('Gi') 
  </code></pre>
  
  <p>the time could be 945. When using the if statement:</p>
  
  <pre><code>if(($current&gt;= $starttime) &amp;&amp; ($current&lt;= $endtime))
  </code></pre>
  
  <p>This time will not be between this times. But in the real life this time
  is between those two dates. Because 030 is the next day midnight.</p>
  
  <p>Does somebody know how to make an right PHP check for this?</p>