This is documentation for Kohana v2.3.x.
Status | stub |
---|---|
Todo | Write me |
A helper designed to format useful information the right way.
phone($number, $format = '3-3-4')
formats a phone number according to the specified format. It takes:
$number
phone number$format
format string, default 3-3-4Example:
echo format::phone('0123456789');
It will result in HTML as:
012-345-6789
url($str = '')
formats a URL to contain a protocol at the beginning.. It takes:
$str
possibly incomplete URLExample:
echo format::url('kohanaphp.com');
It will result in HTML as:
http://kohanaphp.com