Skip to content

Commit 8eceed4

Browse files
committed
Updated README
1 parent f5b4b6d commit 8eceed4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ Examples:
2626
$result = HTTPHeader::Accept("Accept: text/html, application/xhtml+xml");
2727
$result = HTTPHeader::Accept("Accept: text/html\r\nAccept-Encoding: gzip");
2828

29-
All fields can be extracted from a string containing multiple headers, or from a complete HTTP request or response, using the `all()` method. The return value is an associative array of arrays containing one entry for each occurence of a field:
29+
All fields can be extracted from a string containing multiple headers, or from a complete HTTP request or response, using the `extract()` method. The return value is an associative array of arrays containing one entry for each occurence of a field:
3030

3131
Example:
3232

33-
$result = HTTPHeader::all($request_or_response);
33+
$result = HTTPHeader::extract($request_or_response);
3434
print_r($result);
3535

3636
Array

0 commit comments

Comments
 (0)