如何在PHP中返回number_format后添加文本?

时间:2018-03-06 09:03:44

标签: php

我需要在这个号码后面添加文字:

if( isset( $entry['103'] )) {
    return number_format (($entry['103'] * 0.6),0, ".", ",") ;

我该怎么办? 提前谢谢。

1 个答案:

答案 0 :(得分:-1)

希望这会帮助你:

if( isset( $entry['103'] )) {
    $n = number_format (($entry['103'] * 0.6),0, ".", ",") ;
    $n = $n."Your text";
    return $n;