|
NumberFormatter::setAttributenumfmt_set_attributeSet an attribute BeschreibungObjektorientierter Stil
public
bool
NumberFormatter::setAttribute
( int
$attr
, int $value
)Prozeduraler Stil
bool
numfmt_set_attribute
( NumberFormatter
$fmt
, int $attr
, int $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. Parameter-Liste
Rückgabewerte
Gibt bei Erfolg BeispieleBeispiel #1 numfmt_set_attribute example
<?phpBeispiel #2 OO example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: Digits: 3 1.234.567,891 Digits: 2 1.234.567,89 Siehe auch
|