title: Convert Range of Numbers to Square Feet
body: <p>I am using this function which works fine for a single number entered by user in format <code>1000</code> and <code>1,100</code></p>
  
  <pre><code>function metersToSquareFeet($meters, $echo = true)
  {
      $m = $meters;
      $valInFeet = $m*10.7639;
      $valFeet = (int)$valInFeet;
      if($echo == true)
      {
          echo $valFeet;
      } else {
          return $valFeet;
      }
  }
  </code></pre>
  
  <p>I need to modify for the case where users enter a range of numbers in the format: <code>1000-2000</code></p>
  
  <p>The function should be smart enough to convert both numbers and in this case output in this format <code>10,763-21,527</code></p>