Files
doc-fr/reference/stream/functions/stream-context-get-options.xml
Yannick Torres 07c353d974 sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@336752 c90b9560-bf6c-de11-be94-00142212c4b1
2015-05-12 08:20:14 +00:00

104 lines
2.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: dcdd9c608e6294c1bf428744002030e1354806e3 Maintainer: yannick Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.stream-context-get-options" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>stream_context_get_options</refname>
<refpurpose>Lit la valeur des options pour un flux/gestionnaire/contexte</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>stream_context_get_options</methodname>
<methodparam><type>resource</type><parameter>stream_or_context</parameter></methodparam>
</methodsynopsis>
<simpara>
<function>stream_context_get_options</function> retourne un tableau
contenant la liste des options pour le flux ou le contexte
<parameter>stream_or_context</parameter>.
</simpara>
</refsect1>
<refsect1 role="parameters"><!-- {{{ -->
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>stream_or_context</parameter></term>
<listitem>
<para>
Le <type>stream</type> ou <type>context</type> dont il faut lire les options.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1><!-- }}} -->
<refsect1 role="returnvalues"><!-- {{{ -->
&reftitle.returnvalues;
<para>
Retourne un tableau associatif contenant les options.
</para>
</refsect1><!-- }}} -->
<refsect1 role="examples"><!-- {{{ -->
&reftitle.examples;
<para>
<example xml:id="stream-context-get-options.example.basic"><!-- {{{ -->
<title>Exemple avec <function>stream_context_get_options</function></title>
<programlisting role="php">
<![CDATA[
<?php
$params = array("method" => "POST");
stream_context_set_default(array("http" => $params));
var_dump(stream_context_get_options(stream_context_get_default()));
?>
]]>
</programlisting>
&example.outputs.similar;
<screen>
<![CDATA[
array(1) {
["http"]=>
array(1) {
["method"]=>
string(4) "POST"
}
}
]]>
</screen>
</example><!-- }}} -->
</para>
</refsect1><!-- }}} -->
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->