require_once(DistanceTime.class.php); // This example calculates splits for a 3 hour marathon. $rp = new DistanceTime(26.2, 'mi', 0, 0, 3); echo $rp->getPaceString('min/mi', true) . "\n"; echo $rp->getSpeedString('mi/h', true) . "\n"; var_dump($rp->getAllSplits());
info at phpclasses dot org