This is documentation for Kohana v2.3.x.

Table of Contents
Statusstub
TodoWrite me

Format Helper

A helper designed to format useful information the right way.

Methods

phone()

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()

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