Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




number_format_i18n [ WordPress Function ]

number_format_i18n ( $number, $decimals = 0 )
Parameters:
  • (int) $number The number to convert based on locale.
  • (int) $decimals Precision of the number of decimal places.
Returns:
  • (string) Converted number in string format.
Defined at:



Convert integer number to format based on the locale.

Source


<?php
function number_format_i18n$number$decimals ) {
    global 
$wp_locale;
    
$formatted number_format$numberabsint$decimals ), $wp_locale->number_format['decimal_point'], $wp_locale->number_format['thousands_sep'] );
    return 
apply_filters'number_format_i18n'$formatted );
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics