private static function getHeaderAndBody($response) {
    $header = self::http_parse_headers(substr($response, 0, strrpos($response,"\r\n\r\n")));
    $body = substr($response, strrpos($response,"\r\n\r\n")+4);

    return array($header,$body);
  }
private static function getHeaderAndBody($response) {
    $header = self::http_parse_headers(substr($response, 0, strrpos($response,"\r\n\r\n")));
    $body = substr($response, strrpos($response,"\r\n\r\n")+4);

    return array($header,$body);
  }
private static function getHeaderAndBody ( $ response ) { $ header = self :: http_parse_headers ( substr ( $ response , 0 , strrpos ( $ response , "\r\n\r\n" ) ) ) ; $ body = substr ( $ response , strrpos ( $ response , "\r\n\r\n" ) + 4 ) ; return array ( $ header , $ body ) ; }
Strip header content

@param String server response
@return array header, body of the server response. The header is parsed as an array.
Strip header content