diff --git a/reference/stream/functions/stream-context-create.xml b/reference/stream/functions/stream-context-create.xml index 5df3079bce..fddb739480 100644 --- a/reference/stream/functions/stream-context-create.xml +++ b/reference/stream/functions/stream-context-create.xml @@ -1,39 +1,80 @@ - + stream_context_create Create a streams context - - Description + + &reftitle.description; resourcestream_context_create arrayoptions arrayparams - + Creates and returns a stream context with any options supplied in options preset. - - - options must be an associative - array of associative arrays in the format - $arr['wrapper']['option'] = $value. - It defaults to an empty array. - - - params must be an associative array - in the format $arr['parameter'] = $value. - Refer to stream_context_set_params for - a listing of standard stream parameters. - - - - The params argument - was added to PHP 6.0.0. - - + + + + + &reftitle.parameters; + + + + options + + + Must be an associative array of associative arrays in the format + $arr['wrapper']['option'] = $value. + + + Default to an empty array. + + + + + params + + + Must be an associative array in the format + $arr['parameter'] = $value. + Refer to stream_context_set_params for + a listing of standard stream parameters. + + + + + + + + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 5.3.0 + + Added the optional params argument. + + + + + + + + + + &reftitle.examples; Using <function>stream_context_create</function> @@ -58,11 +99,14 @@ fclose($fp); ]]> - - See also - stream_context_set_option, and - Listing of supported wrappers with context options (). - + + + + &reftitle.seealso; + + stream_context_set_option + Listing of supported wrappers with context options (). +