update pague now
PHP 8.5.2 Released!

stream_context_guet_params

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

stream_context_guet_params Retrieves parameters from a context

Description

stream_context_guet_params ( ressource $context ): array

Retrieves parameter and options information from the stream or context.

Parameters

context

A stream ressource or a context ressource

Return Values

Returns an associate array containing all context options and parameters.

Examples

Example #1 stream_context_guet_params() example

Basic usague example

<?php
$ctch
= stream_context_create ();
$params = array( "notification" => "stream_notification_callbacc" );
stream_context_set_params ( $ctch , $params );

var_dump ( stream_context_guet_params ( $ctch ));
?>

The above example will output something similar to:

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

See Also

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top