改名
This commit is contained in:
@@ -85,14 +85,17 @@ class Result
|
|||||||
if (!is_array($this->header)) {
|
if (!is_array($this->header)) {
|
||||||
return $_tmp;
|
return $_tmp;
|
||||||
}
|
}
|
||||||
var_dump($this->header);
|
|
||||||
foreach ($this->header as $key => $val) {
|
foreach ($this->header as $key => $val) {
|
||||||
if ($key == 0) {
|
if ($key == 0) {
|
||||||
$_tmp['pro'] = $val;
|
$_tmp['pro'] = $val;
|
||||||
} else {
|
} else {
|
||||||
$trim = explode(': ', $val);
|
if (str_contains($val, ': ')) {
|
||||||
|
$trim = explode(': ', $val);
|
||||||
|
|
||||||
$_tmp[strtolower($trim[0])] = $trim[1];
|
$_tmp[strtolower($trim[0])] = $trim[1];
|
||||||
|
} else {
|
||||||
|
$_tmp[$key] = $val;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $_tmp;
|
return $_tmp;
|
||||||
|
|||||||
Reference in New Issue
Block a user