PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Numbers » Numbers_Words » Bug #1765

toCurrency() Pb with french

Details

Submitted2004-07-01 14:35 UTC
Fromle_seul_romy at hotmail dot com
StatusBogus
PackageNumbers_Words
PHP Version4.3.3
OSwin2000
Roadmaps(Not assigned)

Comments

[2004-07-01 14:35 UTC] le_seul_romy at hotmail dot com

Description:
------------
hi,

when i write $nw->toCurrency(3000000.50, 'fr');
i have this answer :
(see Expected result:à)
why Object ??

all others languages working, but not for french.

thx

regards

Reproduce code:
---------------
<?php

// inclure la classe
include_once ("Numbers/Words.php");

// créer l'objet
$nw = new Numbers_Words();

// convertir en chaîne monétaire
echo "3000000.50 en lettres donne " . $nw->toCurrency(3000000.50, 'fr');

?>

Expected result:
----------------
millions3000000.50 en lettres donne Object

[2004-07-07 10:05 UTC] le_seul_romy at hotmail dot com

really?
it does not exists? lol
it's a very good reason why i have a error message^^ ;-)
ok, thx for your answer

i go try to write a class for that
bye