|
NumberFormatter::getAttributenumfmt_get_attributeGet an attribute BeschreibungObjektorientierter Stil
public
int
NumberFormatter::getAttribute
( int
$attr
)Prozeduraler Stil
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. Parameter-Liste
Rückgabewerte
Return attribute value on success, or BeispieleBeispiel #1 numfmt_get_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
|