From: Edward Date: Mon, 20 Oct 2014 07:57:07 +0000 (+0800) Subject: UpdateCurrencyRate.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=1b3e2f2f78a527574f1b55db09deaa74de908f03 UpdateCurrencyRate.php --- diff --git a/UpdateCurrencyRate.php b/UpdateCurrencyRate.php index 6c41e2be..8a3895c3 100644 --- a/UpdateCurrencyRate.php +++ b/UpdateCurrencyRate.php @@ -84,7 +84,7 @@ class Pman_Core_UpdateCurrencyRate extends Pman $elements = $xpath->query("table/tr/td/pre", $ts->item(0)); - $rate = array_map('str_getcsv', $elements->item(0)->nodeValue); + $rate = array_map('str_getcsv', explode("\n", $elements->item(0)->nodeValue)); print_r($rate);exit;