helpers/format – Kohana API 2.3 Documentation

system/helpers/format.php

Class: format_Core

class format_Core

Format helper class.


Methods

format_Core :: phone

public static function phone

Formats a phone number according to the specified format.

Parameters:

string number
phone number
string format
(string 3-3-4) format string

Return: string


format_Core :: url

public static function url

Formats a URL to contain a protocol at the beginning.

Parameters:

string str
(string ) possibly incomplete URL

Return: string