How can I convert 08 to integer in PHP?

Em-Em

New member
I need to compute the difference between two times... example, I have two data from my database, time1 = 08:00:00 and time2 = 17:00 and I need to get hour1 = 08: minute1 = 00, and second1:00... my issue is i need to convert 08 to integer 8 so that there will be no problem with my computation... any help is highy appreciated... thanks...
 
Back
Top