Jump to content


This topic is now archived and is closed to further replies.


Finance Help

Recommended Posts

Has anyone used the Numeric Currency to Alpha Word Value String 1.0 script?

[a href=\"http://www.phpfreaks.com/quickcode/Numeric-Currency-to-Alpha-Word-Value-String/167.php\" target=\"_blank\"]http://www.phpfreaks.com/quickcode/Numeric...-String/167.php[/a]

Can I see it in action? Will pay handsomely in fake money if help can be given ;)

Share this post

Link to post
Share on other sites
I have a "baa2words" class that does similar

[code]    $amount = 12345.67;

    $obj = new baa2words( $amount , 'dollars', 'c');

    echo  $obj->words; [/code]

[code]Twelve thousand three hundred forty five dollars 67c[/code]

Share this post

Link to post
Share on other sites
I took the script, played with it for about 5 minutes and made it work. You can see it in action at:

[a href=\"http://www.rbnsn.com/phpfreaks/numbwords.php\" target=\"_blank\"]http://www.rbnsn.com/phpfreaks/numbwords.php[/a]
Just using the URL as is will display the test cases.

If you invoke it with "?f=1" at the end of the URL, a form will be displayed where you can enter your own number.

[a href=\"http://www.rbnsn.com/phpfreaks/numbwords.php?f=1\" target=\"_blank\"]http://www.rbnsn.com/phpfreaks/numbwords.php?f=1[/a]


Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.