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

search for in the

stream_context_set_default> <stream_context_get_options
[edit] Last updated: Fri, 07 Jun 2013

view this page in

stream_context_get_params

(PHP 5 >= 5.3.0)

stream_context_get_paramsRecuperar los parámetros de un contexto

Descripción

array stream_context_get_params ( resource $stream_or_context )

Recupera la información de los parámetros y de las opciones de un flujo o contexto.

Parámetros

stream_or_context

Un resource de flujo o un resource de contexto

Valores devueltos

Devuelve una matriz asociativa que contiene todas las opciones y parámetros del contexto.

Ejemplos

Ejemplo #1 Ejemplo de stream_context_get_params()

Ejemplo de uso básico

<?php
$ctx 
stream_context_create();
$params = array("notification" => "stream_notification_callback");
stream_context_set_params($ctx$params);

var_dump(stream_context_get_params($ctx));
?>

El resultado del ejemplo sería algo similar a:

array(2) {
  ["notification"]=>
  string(28) "stream_notification_callback"
  ["options"]=>
  array(0) {
  }
}

Ver también



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

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