title: How to convert a number into hour and minute using php?
body: <p>I am trying to convert a number into hour,min.But Its not working well.
  I have variable which has value something like</p>
  
  <pre><code>$t_hr = 193;
  </code></pre>
  
  <p>I want to display it like <code>3 hr 13 min</code>
  I tried this code </p>
  
  <pre><code>$t_min = 193;
  if($t_min&gt;60)
     {
      $t_hr=$t_hr+1;
      $t_min = $t_min-60;
     }
  </code></pre>
  
  <p>which is not working well.I need to get the value like above.Any Idea?</p>