- var_dump: documentation ( source)
<?php
$n = 9.83;
$currency = 'CHF';
$locale = null;
var_dump($n);
$formatter = new NumberFormatter($locale, NumberFormatter::CURRENCY);
$formatted_value = $formatter->formatCurrency($n, $currency);
var_dump($formatted_value);