How to compare two 24 hour time
<p>I have two 24-hour time values and want to compare them using PHP. </p>

<p>I have tried the following:</p>

<pre><code>$time="00:05:00"; //5 minutes

if($time1&lt;='00:03:00')
{
 //do some work
}
else
{
 //do something
}
</code></pre>

<p>Is this the correct way to compare 2 time values using PHP?</p>
