|
NumberFormatter::setPatternnumfmt_set_patternSet formatter pattern DescriptionObject oriented style
public
bool
NumberFormatter::setPattern
( string
$pattern
)Procedural style
bool
numfmt_set_pattern
( NumberFormatter
$fmt
, string $pattern
)Set the pattern used by the formatter. Can not be used on a rule-based formatter. Parameters
Return Values
Returns ExamplesExample #1 numfmt_set_pattern example
<?php Example #2 OO example
<?php The above example will output: Pattern: #,##0.### 1.234.567,891 Pattern: #0.# kg 1234567,9 kg See Also
|