|
NumberFormatter::setTextAttributenumfmt_set_text_attributeSet a text attribute DescriptionObject oriented style
public
bool
NumberFormatter::setTextAttribute
( int
$attr
, string $value
)Procedural style
bool
numfmt_set_text_attribute
( NumberFormatter
$fmt
, int $attr
, string $value
)
Set a text attribute associated with the formatter. An example of a text
attribute is the suffix for positive numbers. If the formatter does not
understand the attribute,
Parameters
Return Values
Returns ExamplesExample #1 numfmt_set_text_attribute example
<?php Example #2 OO example
<?php The above example will output: Prefix: - -1.234.567,891 Prefix: MINUS MINUS1.234.567,891 See Also
|