mjh Posted April 18, 2006 Share Posted April 18, 2006 I could really use some guidance here with PHP and maybe Javascript (sorry).I want to get the number of mins (eg 115) from a time formatted 01:55:00 (for 1 hour 55 mins duration)I have used Explode before in PHP to get the 'bits' and then do the math.HOWEVER, this time i want to show the answer as the user 'tabs' down the form, this sort of thing:Distance [textbox] milesDuration [textbox] 00:00:00 formatPace [textbox] calced pace in mins per milesI guess this is turning into a Javascript question (sorry)matt Link to comment https://forums.phpfreaks.com/topic/7715-exploding-string/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.