Search Results
Parameters ¶ formatter NumberFormatter object. symbol Symbol specifier, one of the format symbol constants. value Text for the symbol.
Set a symbol associated with the formatter. The formatter uses symbols to represent the special locale-dependent characters in a number, for example the percent sign. This API is not supported for rule-based formatters.
By invoking the methods provided by the NumberFormatter class, you can format numbers, currencies, and percentages according to the specified or default locale. NumberFormatter is locale-sensitive so you need to create a new NumberFormatter for each locale. NumberFormatter methods format primitive-type numbers, such as double and output the number as a locale-specific string.
NumberFormatter::setSymbol -- numfmt_set_symbol — Configure le symbole du formateur
PHP Manual Function Reference Human Language and Character Encoding Support intl NumberFormatter
Set a symbol associated with the formatter. The formatter uses symbols to represent the special locale-dependent characters in a number, for example the percent sign. This API is not supported for rule-based formatters.
The NumberFormatter::setSymbol function is a PHP method used to set a specific symbol value in a NumberFormatter object. It allows customization of symbols used in number formatting, such as currency symbols, decimal separators, and thousands separators.
