mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Document second arg to stream_context_create()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@210248 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
862ef9deaa
commit
44f354ef9a
1 changed files with 14 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<refentry id="function.stream-context-create">
|
||||
<refnamediv>
|
||||
<refname>stream_context_create</refname>
|
||||
|
@ -10,6 +10,7 @@
|
|||
<methodsynopsis>
|
||||
<type>resource</type><methodname>stream_context_create</methodname>
|
||||
<methodparam choice="opt"><type>array</type><parameter>options</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>array</type><parameter>params</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<simpara>
|
||||
Creates and returns a stream context with any options supplied in
|
||||
|
@ -21,6 +22,18 @@
|
|||
<literal>$arr['wrapper']['option'] = $value</literal>.
|
||||
It defaults to an empty array.
|
||||
</simpara>
|
||||
<simpara>
|
||||
<parameter>params</parameter> must be an associative array
|
||||
in the format <literal>$arr['parameter'] = $value</literal>.
|
||||
Refer to <function>stream_context_set_params</function> for
|
||||
a listing of standard stream parameters.
|
||||
</simpara>
|
||||
<note>
|
||||
<simpara>
|
||||
The <parameter>params</parameter> argument
|
||||
was added to <literal>PHP 6.0.0</literal>.
|
||||
</simpara>
|
||||
</note>
|
||||
<example>
|
||||
<title>Using <function>stream_context_create</function></title>
|
||||
<programlisting role="php">
|
||||
|
|
Loading…
Reference in a new issue