Definition:
function number_format_i18n( $number, $decimals = 0 ) {}
Convert integer number to format based on the locale.
Parameters
- int $number: The number to convert based on locale.
- int $decimals: Precision of the number of decimal places.
Return values
returns:Converted number in string format.
Defined filters
- number_format_i18n
apply_filters( 'number_format_i18n', $formatted )
Source code
function number_format_i18n( $number, $decimals = 0 ) {
global $wp_locale;
$formatted = number_format( $number, absint( $decimals ), $wp_locale->number_format['decimal_point'], $wp_locale->number_format['thousands_sep'] );
return apply_filters( 'number_format_i18n', $formatted );
}
2465

February 12, 2011 


No comments yet... Be the first to leave a reply!