^Status|stub|
^Todo|Write 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:
* **[string]** ''$number'' phone number
* **[string]** ''$format'' format string, default 3-3-4
* returns **[string]** the formated phone number or the number passed if the format string could not have been applied
**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:
* **[string]** ''$str'' possibly incomplete URL
* returns **[string]** the formated URL
**Example:**
echo format::url('kohanaphp.com');
It will result in HTML as:
http://kohanaphp.com