码迷,mamicode.com
首页 > 其他好文 > 详细

Helpers\Number

时间:2016-07-05 14:16:20      阅读:126      评论:0      收藏:0      [点我收藏+]

标签:

Helpers\Number

This helper has 2 methods for converting a number format and to get a percentage.

Number::format($number, $prefix = ‘4‘)

Converts a given number to start with a prefix, useful to making sure mobile numbers start with a 0 only when they don‘t start with 0

Number::percentage($val1, $val2)

Get a percentage from the 2 given numbers.

Helpers\Number

标签:

原文地址:http://www.cnblogs.com/chunguang/p/5643187.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!