|
NumberFormatter::getAttributenumfmt_get_attributeGet an attribute DescriptionObject oriented style
public
int
NumberFormatter::getAttribute
( int
$attr
)Procedural style
int
numfmt_get_attribute
( NumberFormatter
$fmt
, int $attr
)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
<?php Example #2 OO example
<?php The above example will output: Digits: 3 1.234.567,891 Digits: 2 1.234.567,89 See Also
|