How to convert kilograms or grams to pounds in php?
In this post, The function converter helps you convert grams, kilograms to pounds in PHP.
1. Code:
";
echo convertWeightToLb("kg", 1);
?>
2. Example:
Input:
Input 1: Weight unit: kg , Weight = 1 Input 2: Weight unit: g , Weight = 10000
Output:
Output 1: 22.0462262 Output 2: 2.20462262