How to convert Meters to Foot using PHP
<p>I have used this code which shows an error:ie if my meters is 175m but when i convert it does'nt show that thing</p>

<pre><code>&lt;?php
function metersToFeetInches($meters, $echo = true)
{
    $m = $meters;
    $valInFeet = $m*3.2808399;
    $valFeet = (int)$valInFeet;
    $valInches = round(($valInFeet-$valFeet)*12);
    $data = $valFeet."&amp;prime;".$valInches."&amp;Prime;";
    if($echo == true)
    {
            echo $data;
    } else {
            return $data;
    }
}
?&gt;
&lt;?php
$feetInches = metersToFeetInches(1.75,false);
echo $feetInches;
?&gt;
</code></pre>
