stream_context_get_options(3) php man page | unix.com

Man Page: stream_context_get_options

Operating Environment: php

Section: 3

STREAM_CONTEXT_GET_OPTIONS(3)						 1					     STREAM_CONTEXT_GET_OPTIONS(3)

stream_context_get_options - Retrieve options for a stream/wrapper/context

SYNOPSIS
array stream_context_get_options (resource $stream_or_context)
DESCRIPTION
Returns an array of options on the specified stream or context.
PARAMETERS
o $stream_or_context - The stream or context to get options from
RETURN VALUES
Returns an associative array with the options.
EXAMPLES
Example #1 stream_context_get_options(3) example <?php $params = array("method" => "POST"); stream_context_set_default(array("http" => $params)); var_dump(stream_context_get_options(stream_context_get_default())); ?> The above example will output something similar to: array(1) { ["http"]=> array(1) { ["method"]=> string(4) "POST" } } PHP Documentation Group STREAM_CONTEXT_GET_OPTIONS(3)
Related Man Pages
array_count_values(3) - php
http-context-options(3) - php
stream_context_get_params(3) - php
stream_context_set_params(3) - php
var_dump(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
Please Welcome Don Cragun as Lead Moderator
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
Denial Of Service Attack Update