Advertisement

07.18.2008 at 07:06AM PDT, ID: 23576872
[x]
Attachment Details

Convert phrase to kph from mph

Asked by hankknight in PHP Scripting Language

I want a function to convert miles per hour to kilometers per hour within a phrase.

KPH may be found by dividing MPH by 0.621.

100 mph = 161 kph.

The challenge is finding the values within my text.

///////////////////////////
echo mi2km("Wind: South at 100 mph");  
      /// Wind: South at 161 kph

echo mi2km("Wind: N at 33 mph");
      /// Wind: N at 53 mph
Start Free Trial
 
 
[+][-]07.18.2008 at 07:41AM PDT, ID: 22036272

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: PHP Scripting Language
Sign Up Now!
Solution Provided By: hielo
Participating Experts: 4
Solution Grade: A
 
 
[+][-]07.18.2008 at 07:43AM PDT, ID: 22036297

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 08:12AM PDT, ID: 22036660

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 08:27AM PDT, ID: 22036841

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906