stream_context_get_params

Supported Versions: PHP 5 >= 5.3.0, PHP 7, PHP 8
Retrieves parameters from a context
<?php stream_context_get_params(resource $context): array
<?php     {

        $context = StreamContextFactory::getContext('http://example.org', $defaultOptions, $defaultParams);

        $options = stream_context_get_options($context);

        $params = stream_context_get_params($context);



        $this->assertEquals($expectedOptions, $options);

        $this->assertEquals($expectedParams, $params);
<?php     public static function castStreamContext($stream, array $a, Stub $stub, bool $isNested)

    {

        return @stream_context_get_params($stream) ?: $a;

    }



    public static function castGd($gd, array $a, Stub $stub, bool $isNested)