更新了postgresql数组到php数组的简易拆分,之前的版本容易误伤

This commit is contained in:
wlx 2013-05-08 05:42:57 +00:00
parent 2bbd5013ad
commit 219ff85920
1 changed files with 4 additions and 4 deletions

View File

@ -117,10 +117,10 @@ class Doi extends Zend_Controller_Plugin_Abstract
}
function array_split($a){
$a = str_replace("{",'',$a);
$a = str_replace("}",'',$a);
$a = explode(",",$a);
return $a;
/*$a = str_replace("{",'',$a);
$a = str_replace("}",'',$a);
$a = explode(",",$a); */
return $explode(',',substr($a,1,-1));
}
function view($id)