|
NumberFormatter::getAttributenumfmt_get_attributeGet an attribute DescriptionObject-oriented style
public intfloatfalse NumberFormatter::getAttribute(int
$attribute )Procedural style intfloatfalse numfmt_get_attribute(NumberFormatter
$formatter , int $attribute )Get 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
Return attribute value on success, or ExamplesExample #1 numfmt_get_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
|