I was wondering if anyone could help me create a function that will turn millimeters into feet/inches.
Example: 5280mm will be returned as 17ft / 3.87inches (or 17'3")
I know that there's 304.8mm in a foot, which gives me 17.322834645669 (using the same example above) but I'm not sure how to then format it into something more legible.
function getMeasurements($mm) {
return ($mm/304.8);
}