number_format_i18n

FUNCTION wp-includes\functions.php (ligne 413) github
Converts float number to format based on the locale.

Paramètres

Entrée :
$number, $decimals = 0
Sortie :
@param float $number   The number to convert based on locale.
@param int   $decimals Optional. Precision of the number of decimal places. Default 0.
@return string Converted number in string format.

Utilisation

// Utilisation de la fonction number_format_i18n
$result = number_format_i18n($number, $decimals = 0);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...