Я пытаюсь отобразить знак £ и запятые с в ряде показать валюту, но я не знаю, как, вот код, у меня есть, что эха это как 8999999 вместо £ 8.999.999PHP валюты дисплей
<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/) manual/en/function.money-format.php) или [sprint()] (http://www.php.net/manual/en/function.sprintf.php) –
Возможный дубликат [основная помощь php form (валюта) дисплей)] (http://stackoverflow.com/questions/345704/basic-php-form-help-currency-display) – hakre