public function parse($value)
    {
        $locale = $this->params['locale'];
        //$formatterId = md5($locale);
        $formatterId = $locale;
        if (!array_key_exists($formatterId, $this->formatters)) {
            $this->loadFormatterId($formatterId);
        }
        // Currency will be passed as reference
        // setting it to null prevent eventual warning
        $currency = null;
        $result = $this->formatters[$formatterId]->parseCurrency($value, $currency);

        if ($result === false) {
            return null;
        }

        return ['value' => $result, 'currency' => $currency];
    }
public function parse($value)
    {
        $locale = $this->params['locale'];
        //$formatterId = md5($locale);
        $formatterId = $locale;
        if (!array_key_exists($formatterId, $this->formatters)) {
            $this->loadFormatterId($formatterId);
        }
        // Currency will be passed as reference
        // setting it to null prevent eventual warning
        $currency = null;
        $result = $this->formatters[$formatterId]->parseCurrency($value, $currency);

        if ($result === false) {
            return null;
        }

        return ['value' => $result, 'currency' => $currency];
    }
public function parse ( $ value ) { $ locale = $ this -> params [ 'locale' ] ; //$formatterId = md5($locale); $ formatterId = $ locale ; if ( ! array_key_exists ( $ formatterId , $ this -> formatters ) ) { $ this -> loadFormatterId ( $ formatterId ) ; } // Currency will be passed as reference // setting it to null prevent eventual warning $ currency = null ; $ result = $ this -> formatters [ $ formatterId ] -> parseCurrency ( $ value , $ currency ) ; if ( $ result === false ) { return null ; } return [ 'value' => $ result , 'currency' => $ currency ] ; }
Parse a.

@param string $value

@return array|null
Parse a .