dongmubi4375 2015-02-09 17:15
浏览 18
已采纳

如何在php中回显一个类

i am using this php code:

<?php
class NumericHelper {
        public static function ToWordFa($number) {
            ...
            ...
            ...
    ?>

and i have $creditPoints which it is echoing some numbers: i want to echo it as words and i do not know haw to do that. how to do that?

  • 写回答

2条回答 默认 最新

  • doulai5585 2015-02-09 17:18
    关注

    In your example ToWordFa is defined as a static method in the class NumericHelper. To use it you must call it like this:

    echo NumericHelper::ToWordFa($creditPoints);
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?