Open-Source PHP Framework - Designed for rapid development of performance-oriented scalable applications

App Directory >> CakePHP NumberHelper by Ajay AnturkarAjay Anturkar

Download this App

package
CakePHP NumberHelper
version
1.0.1
license
MIT (X11)

CakePHP NumberHelper

The NumberHelper contains convenience methods that enable display numbers in common formats in your views. These methods include ways to format currency, percentages, data sizes, format numbers to specific precisions and also to give you more flexibility with formating numbers.

All of these functions return the formated number; They do not automatically echo the output into the view.

Functions


How to use



$number 
get::helper('number');
echo 
$number->currency("1234.56""USD")// Output: $1,234.56


App Files