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, 17 May 2013

view this page in

stream_context_get_options

(PHP 4 >= 4.3.0, PHP 5)

stream_context_get_optionsRecuperar las opciones para un flujo/envoltura/contexto

Descripción

array stream_context_get_options ( resource $stream_or_context )

Devuelve una matriz de opciones del el flujo o contexto especificados.

Parámetros

stream_or_context

El stream (flujo) o context (contexto) de donde se van a obtener las opciones

Valores devueltos

Devuelve una matriz asociativa con las opciones.

Ejemplos

Ejemplo #1 Ejemplo de stream_context_get_options()

<?php
$params 
= array("método" => "POST");

stream_context_get_default(array("http" => $params));

var_dump(stream_context_get_options(stream_context_get_default()));

?>

El resultado del ejemplo sería algo similar a:

array(1) {
  ["http"]=>
  array(1) {
    ["método"]=>
    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 | sitemap | contact | advertising | mirror sites