Jump to content


Finance Help

  • Please log in to reply
2 replies to this topic

#1 dpiland

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 28 April 2006 - 06:59 PM

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 ;)

#2 Barand

  • Moderators
  • Sen . ( ile || sei )
  • 18,017 posts

Posted 28 April 2006 - 07:31 PM

I have a "baa2words" class that does similar

    $amount = 12345.67;

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

    echo  $obj->words;

Twelve thousand three hundred forty five dollars 67c

If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received


|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

#3 kenrbnsn

  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 28 April 2006 - 07:56 PM

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]


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users