Number to words in php using NumberFormatter class

前端 未结 2 354
独厮守ぢ
独厮守ぢ 2021-01-13 12:49

I have a difficulty solving my number to words function in php.

2条回答
  •  礼貌的吻别
    2021-01-13 13:24

    First of all, how 29.29 should pronounce is Twenty nine point two nine. Having said that, if you need to get exactly Twenty-nine and Twenty-nine, you can use below :

    format($exp[0])) . ' and ' . ucfirst($f->format($exp[1]));
      //outputs Twenty-nine and Twenty-nine
    ?>
    

提交回复
热议问题