Search Results
Create a number formatter Parameters ¶ locale Locale in which the number would be formatted (locale name, e.g. en_CA). style Style of the formatting, one of the format style constants. If NumberFormatter::PATTERN_DECIMAL or NumberFormatter::PATTERN_RULEBASED is passed then the number format is opened using the given pattern, which must conform to the syntax described in » ICU DecimalFormat ...
- getAttribute
Parameters ¶ formatter NumberFormatter object. attribute...
- formatCurrency
Parameters ¶ formatter NumberFormatter object. amount The...
- NumberFormatter
By invoking the methods provided by the NumberFormatter...
- getLocale
Return Values ¶ The locale name used to create the...
- Parse
Parse a number Parameters ¶ formatter NumberFormatter...
- parseCurrency
The given example by Daniel returns false under PHP7.x,...
- getPattern
Description ¶ Object-oriented style public...
- setTextAttribute
Parameters ¶ formatter NumberFormatter object. attribute...
- getAttribute
Apr 20, 2026 · Parameters locale Locale in which the number would be formatted (locale name, e.g. en_CA). style Style of the formatting, one of the format style constants. If NumberFormatter::PATTERN_DECIMAL or NumberFormatter::PATTERN_RULEBASED is passed then the number format is opened using the given pattern, which must conform to the syntax described in » ICU DecimalFormat documentation or » ICU ...
Style of the formatting, one of the format style constants. If NumberFormatter::PATTERN_DECIMAL or NumberFormatter::PATTERN_RULEBASED is passed then the number format is opened using the given pattern, which must conform to the syntax described in » ICU DecimalFormat documentation or » ICU RuleBasedNumberFormat documentation, respectively.
If NumberFormatter::PATTERN_DECIMAL or NumberFormatter::PATTERN_RULEBASED is passed then the number format is opened using the given pattern, which must conform to the syntax described in » ICU DecimalFormat documentation or » ICU RuleBasedNumberFormat documentation, respectively.
If NumberFormatter::PATTERN_DECIMAL or NumberFormatter::PATTERN_RULEBASED is passed then the number format is opened using the given pattern, which must conform to the syntax described in » ICU DecimalFormat documentation or » ICU RuleBasedNumberFormat documentation, respectively.
If NumberFormatter::PATTERN_DECIMAL or NumberFormatter::PATTERN_RULEBASED is passed then the number format is opened using the given pattern, which must conform to the syntax described in » ICU DecimalFormat documentation or » ICU RuleBasedNumberFormat documentation, respectively.
If NumberFormatter::PATTERN_DECIMAL or NumberFormatter::PATTERN_RULEBASED is passed then the number format is opened using the given pattern, which must conform to the syntax described in » ICU DecimalFormat documentation or » ICU RuleBasedNumberFormat documentation, respectively.
