title: Calculating the time difference(in hours and minutes) using strtotime()
body: <pre><code>$time1 = strtotime('23:56');
  $time2 = strtotime('00:21');
  echo ($time1 - $time2)/60;
  </code></pre>
  
  <p>The expected o/p is <code>25</code>.But it returns <code>1415</code>;</p>
  
  <p>If I change </p>
  
  <p><code>$time2= strtotime('24:21');</code></p>
  
  <p>It returns -<code>25</code> which is partially correct(since it returns negative ).</p>
  
  <p>Can any one suggest me, some other function to calculate 
  time difference in minutes.</p>
  
  <p>Thanks :)</p>