protected function _extractHttpCode($header) {
		preg_match(
			'#^HTTP/[0-9\.]+\s(?P<code>[0-9]+)#i',
			$header,
			$matches
		);

		return isset($matches['code'])
			? $matches['code']
			: $this->_defaultCode;
	}
protected function _extractHttpCode($header) {
		preg_match(
			'#^HTTP/[0-9\.]+\s(?P<code>[0-9]+)#i',
			$header,
			$matches
		);

		return isset($matches['code'])
			? $matches['code']
			: $this->_defaultCode;
	}
protected function _extractHttpCode ( $ header ) { preg_match ( '#^HTTP/[0-9\.]+\s(?P<code>[0-9]+)#i' , $ header , $ matches ) ; return isset ( $ matches [ 'code' ] ) ? $ matches [ 'code' ] : $ this -> _defaultCode ; }
Extracts an HTTP code from the given response header.

@param string $header Reponse header.
@return int HTTP code.
Extracts an HTTP code from the given response header .