How to convert decimal number to words (money format) using PHP?

后端 未结 12 953
野趣味
野趣味 2020-12-19 03:38

I just need a little help here. Because I am creating a code for converting decimals to Money format in words. For example if

I have this number

<

12条回答
  •  抹茶落季
    2020-12-19 03:52

    There's a PEAR library that can do this.

    EDIT

    Or you can, at the end of your code, do this

    echo $test . ' cents';
    

提交回复
热议问题