downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

stream_context_get_params> <stream_context_get_default
[edit] Last updated: Fri, 26 Apr 2013

view this page in

stream_context_get_options

(PHP 4 >= 4.3.0, PHP 5)

stream_context_get_optionsRetrieve options for a stream/wrapper/context

Description

array stream_context_get_options ( resource $stream_or_context )

Returns an array of options on the specified stream or context.

Parameters

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() example

<?php
$params 
= array("method" => "POST");

stream_context_get_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"
  }
}



add a note add a note User Contributed Notes stream_context_get_options - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites