← All docs

stream_context_set_params()

Sets parameters on the specified context.

stream_context_set_params()

function stream_context_set_params(resource $context, array $params): bool

Sets parameters on the specified context.

Parameters:

  • $context (resource)
  • $params (array)

Returns: bool

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how stream_context_set_params is implemented in the compiler, see the internals page.