title: How to convert hh:mm:ss to minutes
body: <p>I have a time column <code>$data['Time'] (hh:mm:ss)</code> and I need to convert it to minutes. How can I do this? When I am writing like this: </p>
  
  <pre><code>$avg = ($data['Kilometers'] / $data['Time']) * 60;
  </code></pre>
  
  <p>I have this error</p>
  
  <pre><code>Warning: Division by zero in ... on line ..
  </code></pre>