|
NumberFormatter::setAttributenumfmt_set_attributeSet an attribute DescriptionObject-oriented style
public bool NumberFormatter::setAttribute(int
$attribute , intfloat $value )Procedural style bool numfmt_set_attribute(NumberFormatter
$formatter , int $attribute , intfloat $value )Set a numeric attribute associated with the formatter. An example of a numeric attribute is the number of integer digits the formatter will produce. Parameters
Return Values
Returns ExamplesExample #1 numfmt_set_attribute example
Example #2 OO example
The above example will output: Digits: 3 1.234.567,891 Digits: 2 1.234.567,89 See Also
|