function click_round_number( $number, $min_value = 1000, $decimal = 1 ) { if( $number < $min_value ) { return $number; } $alphabets = array( 100000000 => '亿', 10000 => '万', 1000 => '千' ); foreach( $alphabets as $key => $value ) if( $number >= $key ) { return round( $number / $key, $decimal ) . '' . $value; } }
版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!
转载请注明: dedecms织梦点击数过千过万过亿写法