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 Quote Link to comment https://forums.phpfreaks.com/topic/7715-exploding-string/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.