September 8, 2015

PHP currency format for belgium

PHP currency format for belgium

<?php echo number_format($value, 2, ',', '.'); ?>

 

function cte2($str){
$value = str_replace(array('€', ','), '', $str);
$value = number_format($value, 2, ',', '.');
return '€'.$value;
}

Last updated: September 17, 2015