Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

stream_context_get_params

Description

The stream_context_get_params of Stream for PHP retrieves parameters from a context.

Syntax

stream_context_get_params(resource $context): array

Parameters

context

A stream resource or a context resource

Return

Returns an associate array containing all context options and parameters.

Examples

1

<?

$context = stream_context_create();
$params = array("notification" => "stream_notification_callback");

stream_context_set_params($context, $params);

$return = stream_context_get_params($context);

print_r($return);

?>
Array
(
    [notification] => stream_notification_callback
    [options] => Array
        (
        )

)
HomeMenu