title: Laravel : How to convert time to number of minutes?
body: <p>In laravel suppose i have input like this '10:30:00' an i want to split them by ":" and covert them into integers and add them like here it will be 10+30=40 will be the output. i used 'explode' to split but i don't know how to add the values.if anyone can help please...thanks.here is my sample code where i am taking time as string.this is not duplicate question as i want to use the exploid function to be used and taking input from user as string. not as time. the question is showing as duplicate of my question is about time only. :)</p>
  
  <pre><code>$startTime= $request-&gt;input('starttime');
  $finishTime=$request-&gt;input('endtime');
  $stime = explode(':',$startTime);
  $estime = explode(':',$finishTime);
  </code></pre>