我收到此 PHP 错误:
Undefined offset: 1
代码是:
public function setHttpResponseCodeFromHeader($rawResponseHeader)
{
preg_match('|HTTP/\d\.\d\s+(\d+)\s+.*|', $rawResponseHeader, $match);
$this->httpResponseCode = (int)$match[1];
}
如何解决这个错误?
慕的地8271018
梵蒂冈之花
随时随地看视频慕课网APP