入力に書き込むときに、この 200,00 のような数値を表示したい。
200 と書くと、自動的に数値が 200,00 に変わります
これどうやってするの?
<?
Value 1 <input type="text" name="value1">
Value 2 <input type="text" name="value2">
?>
<?
$total = $value1 + $value2;
?>
$total
末尾に ,00 の数字が必要です
number_format関数を試す
$total = "1279";
echo number_format($total, 2, ',', '.'); // 1.279,00
number_format(number, decimal, decimal seperator, thousand seperator)
number_format を使用して、サイトで変数をエコーします。
ここを参照してください: http://php.net/manual/en/function.number-format.php
number_format($total, 2, ',', '');