How do I create a php function that calculates, and then generates an array that represents both imperial, and its equivalent metric measurements(for humans) for any given range(say 4ft to 7ft)?.
For example:
Array
(
[1] => 4'8"(142cm)
[2] => 4'9"(144.5cm)
[3] => 4'10"(147cm)
)
…and so on. The same example for weight(pounds/kilos) also. If someone could give me a head start on this, I’d appreciate it.
this might point you in the right direction.. have not tested but it should be enough to get you started. very simple concept. I got you started with the feet+ inches strings – now you should be able figure out how to get the meters in there.