Changeset 49029 in spip-zone
- Timestamp:
- Jun 24, 2011, 9:57:19 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/prix/prix_fonctions.php
r49027 r49029 51 51 */ 52 52 function prix_formater($prix){ 53 //si negatif 54 if($prix<0) $negatif=true; 53 55 // On formate d'abord le montant suivant les conventions du pays 54 56 setlocale(LC_MONETARY, 'fr_FR'); 55 57 //$prix = money_format('%i', $prix); // 1 234,57 EUR 56 $prix = money_format('%!n €', $prix); // 1 234,57 � (rendu utf8 = €) 58 $prix = money_format('%!n €', $prix); // 1 234,57 € 59 if($negatif) $prix="-".str_replace(array('-','(',')'),'',$prix); 57 60 return $prix; 58 61 }
Note: See TracChangeset
for help on using the changeset viewer.