|
NumberFormatter::parseCurrencynumfmt_parse_currencyParse a currency number BeschreibungObjektorientierter Stil
public
float
NumberFormatter::parseCurrency
( string
$value
, string &$currency
[, int &$position
] )Prozeduraler Stil
float
numfmt_parse_currency
( NumberFormatter
$fmt
, string $value
, string &$currency
[, int &$position
] )Parse a string into a double and a currency using the current formatter. Parameter-Liste
Rückgabewerte
The parsed numeric value or BeispieleBeispiel #1 numfmt_parse_currency example
<?phpBeispiel #2 OO example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: We have 1234567.89 in USD Siehe auch
|