mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
- add example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@232717 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
75e20103ec
commit
b6f50fa30e
1 changed files with 14 additions and 17 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- Generated by xml_proto.php v2.4. Found in /scripts directory of phpdoc. -->
|
||||
<refentry id="function.http-post-fields">
|
||||
<refnamediv>
|
||||
|
@ -110,36 +110,33 @@
|
|||
-->
|
||||
|
||||
|
||||
<!-- Use when examples exist
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>A <function>http_post_fields</function> example</title>
|
||||
<para>
|
||||
Any text that describes the purpose of the example, or
|
||||
what goes on in the example should go here (inside the
|
||||
<example> tag, not out
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
if ($anexample === true) {
|
||||
echo 'Use the PEAR Coding Standards';
|
||||
}
|
||||
$fields = array(
|
||||
'name' => 'mike',
|
||||
'pass' => 'se_ret'
|
||||
);
|
||||
$files = array(
|
||||
array(
|
||||
'name' => 'uimg',
|
||||
'type' => 'image/jpeg',
|
||||
'file' => './profile.jpg',
|
||||
)
|
||||
);
|
||||
|
||||
$response = http_post_fields("http://exampole.com", $fields, $files);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Use the PEAR Coding Standards
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
-->
|
||||
|
||||
|
||||
<!-- Use when adding See Also links
|
||||
|
|
Loading…
Reference in a new issue