Stream Contexts
Stream contexts allow customizing how streams behave.
They are commonly used with HTTP requests.
Example
Section titled “Example”$options = ["http" => ["method" => "GET"]];
$context = stream_context_create($options);
$content = file_get_contents("https://example.com", false, $context);