Along the lines of the ridiculously simple strtotime () function, is there an easy way to parse strings like "1 hour 30 minutes", "1.5 hours", "90 minutes", "hour and a half" into an integer value representing the corresponding number of seconds?
source
share