| 状态 | 草稿 |
|---|---|
| Todo | Write me |
| 官方最后更新时间 | 2008/08/14 10:19 |
A helper 设计用于,把有用的信息格式化
A helper designed to format useful information the right way.
phone($number, $format = '3-3-4') 基于指定的格式来格式化电话号码,参数如下:
phone($number, $format = '3-3-4') formats a phone number according to the specified format. It takes:
Example:
echo format::phone('0123456789');
返回结果:
It will result in HTML as:
012-345-6789
url($str = ) 在 URL 的开始端提供完整的协议,参数如下
url($str = ) formats a URL to contain a protocol at the beginning.. It takes:
Example:
echo format::url('kohanaphp.com');
返回结果:
It will result in HTML as:
http://kohanaphp.com