Jump to content

Finance Help


dpiland

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 ;)
Link to comment
https://forums.phpfreaks.com/topic/8654-finance-help/
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]
Link to comment
https://forums.phpfreaks.com/topic/8654-finance-help/#findComment-31757
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]

Ken
Link to comment
https://forums.phpfreaks.com/topic/8654-finance-help/#findComment-31773
Share on other sites

Archived

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

×
×
  • Create New...

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.