dpiland Posted April 28, 2006 Share Posted April 28, 2006 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 ;) Quote Link to comment Share on other sites More sharing options...
Barand Posted April 28, 2006 Share Posted April 28, 2006 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] Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted April 28, 2006 Share Posted April 28, 2006 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.