stream_context_get_params

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

stream_context_get_paramsRetrieves parameters from a context

Опис

stream_context_get_params(resource $context): array

Retrieves parameter and options information from the stream or context.

Параметри

context

A stream resource or a context resource

Значення, що повертаються

Returns an associate array containing all context options and parameters.

Приклади

Приклад #1 stream_context_get_params() example

Basic usage example

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

var_dump(stream_context_get_params($ctx));
?>

Поданий вище приклад виведе щось схоже на:

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

Прогляньте також

add a note

User Contributed Notes

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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant