title: separate numbers with space
body: <p>I want to separate numbers with space like this: 1 200,12 500 or 2 000 000
  instead 2000000...</p>
  
  <pre><code>function show_price($id) {
      global $currency_a;
      if(get_option("defaultcurrency")) {
          $curr = $currency_a[get_option("defaultcurrency")][2];
      } else {
          $curr = $currency_a[get_post_meta($id, "currency", true)][2];
      }
      $price = get_post_meta($id, "price", true);
      $currpos = get_option("currpos");
      if($currpos == "1" || !$currpos) {
          return $price."".$curr;
      } elseif ($currpos == "2") {
          return $curr."".$price;
      } elseif ($currpos == "3") {
          return $price;
      }
  }
  </code></pre>