我试图在多个显示£标志和逗号与显示货币,但我不知道怎么样,这里是我的代码有回声的它为8999999,而不是£8999999PHP货币显示
<div id="form">
<form action="index.php" method="post">
<center> <input type="text" name="percent" id="percent" />
<input type="submit" /> </center>
</form>
<center>
<?php
$percent=$_POST['percent'];
$total = 8999999;
/*calculation for discounted price */
$discount_value=$total/100*$percent;
$final_price = $total - $discount_value;
echo $final_price;
?>
</center>
</div>
[number_format()](http://www.php.net/manual/en/function.number-format.php)或[money_format()](http://www.php.net/)手动/ EN/function.money-format.php)或[冲刺()](http://www.php.net/manual/en/function.sprintf.php)的[基本的PHP形式帮助 –
可能重复(货币显示)](http://stackoverflow.com/questions/345704/basic-php-form-help-currency-display) – hakre