views:

256

answers:

1

I'm looking for a library (preferably in PHP) that can extract weigh / height data from a string.

I want my users to input something like "I weigh 80 k and I'm 1.8m tall" or even "220 lb" and "6' 1" and pass it through a function that can extract the quantity and the unit.

Anyone know if there's something like that out there?

+2  A: 

Convert Measurements 1.1 does many of these conversions you mention and more

TravisO