note 114074 added to function.money-format

From: Date: Thu, 09 Jan 2014 03:27:49 +0000
Subject: note 114074 added to function.money-format
Groups: php.notes 
Request: Send a blank email to php-notes+get-198166@lists.php.net to get a copy of this message
In Rafael M. Salvioni function localeconv(); returns an invalid array in my Windows XP SP3 running PHP 5.4.13 so to prevent the Warning Message: implode(): Invalid arguments passed i just add the $locale manually. For other languages just fill the array with the correct settings. <? $locale = array( 'decimal_point' => '.', 'thousands_sep' => '', 'int_curr_symbol' => 'EUR', 'currency_symbol' => '€', 'mon_decimal_point' => ',', 'mon_thousands_sep' => '.', 'positive_sign' => '', 'negative_sign' => '-', 'int_frac_digits' => 2, 'frac_digits' => 2, 'p_cs_precedes' => 0, 'p_sep_by_space' => 1, 'p_sign_posn' => 1, 'n_sign_posn' => 1, 'grouping' => array(), 'mon_grouping' => array(0 => 3, 1 => 3) ); ?> ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/function.money-format.php Edit -- https://master.php.net/note/edit/114074 Del: integrated -- https://master.php.net/note/delete/114074/integrated Del: useless -- https://master.php.net/note/delete/114074/useless Del: bad code -- https://master.php.net/note/delete/114074/bad+code Del: spam -- https://master.php.net/note/delete/114074/spam Del: non-english -- https://master.php.net/note/delete/114074/non-english Del: in docs -- https://master.php.net/note/delete/114074/in+docs Del: other reasons-- https://master.php.net/note/delete/114074 Reject -- https://master.php.net/note/reject/114074 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#198166) next »