protected static function targetsToString($targets, $prefix = '', $suffix = '')
    {
        $array = [];
        foreach ($targets as $currency) {
            $array[] = '"' . $prefix . $currency . $suffix . '"';
        }

        return implode(', ', $array);
    }
protected static function targetsToString($targets, $prefix = '', $suffix = '')
    {
        $array = [];
        foreach ($targets as $currency) {
            $array[] = '"' . $prefix . $currency . $suffix . '"';
        }

        return implode(', ', $array);
    }
protected static function targetsToString ( $ targets , $ prefix = '' , $ suffix = '' ) { $ array = [ ] ; foreach ( $ targets as $ currency ) { $ array [ ] = '"' . $ prefix . $ currency . $ suffix . '"' ; } return implode ( ', ' , $ array ) ; }
Convert targets array to string for using in the YQL query.

@param  array  $targets
@param  string $prefix  Prefix to add to each currency (e.g. base currency)
@param  string $suffix  Suffix to add to each currency
@return string
Convert targets array to string for using in the YQL query .