Open Journal Systems
3.3.0
|
Public Member Functions | |
parse ($money, $forceCurrency=null) | |
Parses a string into a Money object.
Definition at line 10 of file MoneyParser.php.
Money\MoneyParser::parse | ( | $money, | |
$forceCurrency = null |
|||
) |
Parses a string into a Money object (including currency).
string | $money | |
Currency | string | null | $forceCurrency |
Exception |
Implemented in Money\Parser\IntlLocalizedDecimalParser, Money\Parser\IntlMoneyParser, Money\Parser\AggregateMoneyParser, Money\Parser\DecimalMoneyParser, and Money\Parser\BitcoinMoneyParser.