Simple question, but can’t find it elsewhere:
How can I transform my string of time e.g. "09:30" into in integer containing the total minutes in that time? (Solution for "09:30" would be 570)
I have tried a lot of stuff, including substr, mktime and strtottime and just can’t get it to work.
1 Answer