src/VCR/Util/HttpUtil.php
public static function parseStatus($status)
    {
        Assertion::startsWith(
            $status,
            'HTTP/',
            "Invalid HTTP status '$status', expected format like: 'HTTP/1.1 200 OK'."
        );

        $part = explode(' ', $status, 3);

        return array(
            'http_version' => substr(strrchr($part[0], '/'), 1),
            'code' => $part[1],
            'message' => isset($part[2]) ? $part[2] : ''
        );
    }
public static function parseStatus($status)
    {
        Assertion::startsWith(
            $status,
            'HTTP/',
            "Invalid HTTP status '$status', expected format like: 'HTTP/1.1 200 OK'."
        );

        $part = explode(' ', $status, 3);

        return array(
            'http_version' => substr(strrchr($part[0], '/'), 1),
            'code' => $part[1],
            'message' => isset($part[2]) ? $part[2] : ''
        );
    }
public static function parseStatus ( $ status ) { Assertion :: startsWith ( $ status , 'HTTP/' , "Invalid HTTP status '$status', expected format like: 'HTTP/1.1 200 OK'." ) ; $ part = explode ( ' ' , $ status , 3 ) ; return array ( 'http_version' => substr ( strrchr ( $ part [ 0 ] , '/' ) , 1 ) , 'code' => $ part [ 1 ] , 'message' => isset ( $ part [ 2 ] ) ? $ part [ 2 ] : '' ) ; }
Returns http_version, code and message from a HTTP status line.

@param string $status HTTP status line, e.g. HTTP/1.1 200 OK
@return array Parsed 'http_version', 'code' and 'message'.
Returns http_version code and message from a HTTP status line .