← All docs

stream_context_get_options()

Retrieves options for the specified stream context.

stream_context_get_options()

function stream_context_get_options(resource $context): array

Retrieves options for the specified stream context.

Parameters:

  • $context (resource)

Returns: array

Availability

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

Internals

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