update : 2015.11.03
php.shukuma.com검색:
|
NumberFormatter::parseCurrencynumfmt_parse_currency(PHP 5 >= 5.3.0, PECL intl >= 1.0.0) NumberFormatter::parseCurrency -- numfmt_parse_currency — Parse a currency number 설명객체 기반 형식
public
float
NumberFormatter::parseCurrency
( string
$value
, string &$currency
[, int &$position
] )절차식 형식
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. 인수
반환값
The parsed numeric value or 예제Example #1 numfmt_parse_currency() example
<?php Example #2 OO example
<?php 위 예제의 출력: We have 1234567.89 in USD 참고
|