# give/4.15.4/vendor/moneyphp/money/src/MoneyParser.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.15.4. 24 lines.

- Page: https://pluginprobe.com/plugins/give/4.15.4/code/vendor/moneyphp/money/src/MoneyParser.php
- Raw: https://pluginprobe.com/plugins/give/4.15.4/raw/vendor/moneyphp/money/src/MoneyParser.php
- Modified: 2022-05-11T23:49:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.15.4/code/vendor/moneyphp/money/src/MoneyParser.php#L10-L20`.

```php
<?php

namespace Money;

/**
 * Parses a string into a Money object.
 *
 * @author Frederik Bosch <f.bosch@genkgo.nl>
 */
interface MoneyParser
{
    /**
     * Parses a string into a Money object (including currency).
     *
     * @param string               $money
     * @param Currency|string|null $forceCurrency
     *
     * @return Money
     *
     * @throws Exception\ParserException
     */
    public function parse($money, $forceCurrency = null);
}

```
