From 9b7c903b6b7b223f4d5d6689da324d14827e7611 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 8 Mar 2004 16:49:34 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20=E0=20jour=20format=20dans=20price()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/lib/functions.inc.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index 1aa72da3ade..16bd4d52ceb 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -806,11 +806,16 @@ function print_duree_select($prefix) /* * Return an amount with format "9 999.99" + * Fonction utilisée dans les pdf et les pages + * html */ function price($amount) { - $dec='.'; $thousand=' '; - return ereg_replace(' ',' ',number_format($amount, 2, $dec, $thousand)); + return number_format($amount, 2, '.', ' '); + /* TODO implémenter cela plus tard + *$dec='.'; $thousand=' '; + *return ereg_replace(' ',' ',number_format($amount, 2, $dec, $thousand)); + */ } function francs($euros)