cvs: phpdoc /en/reference/filesystem/functions fclose.xml
| From: | Philip Olson | Date: | Fri, 18 Oct 2002 03:07:44 +0000 |
| Subject: | cvs: phpdoc /en/reference/filesystem/functions fclose.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969349164@lists.php.net to get a copy of this message | ||
philip Thu Oct 17 23:07:44 2002 EDT
Modified files:
/phpdoc/en/reference/filesystem/functions fclose.xml
Log:
Added a simple fclose example.
Index: phpdoc/en/reference/filesystem/functions/fclose.xml
diff -u phpdoc/en/reference/filesystem/functions/fclose.xml:1.2
phpdoc/en/reference/filesystem/functions/fclose.xml:1.3
--- phpdoc/en/reference/filesystem/functions/fclose.xml:1.2 Wed Apr 17 02:38:06 2002
+++ phpdoc/en/reference/filesystem/functions/fclose.xml Thu Oct 17 23:07:44 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.fclose">
<refnamediv>
@@ -22,7 +22,23 @@
The file pointer must be valid, and must point to a file
successfully opened by <function>fopen</function> or
<function>fsockopen</function>.
- </para>
+ </para>
+ <para>
+ <example>
+ <title>A simple <function>fclose</function> example</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+ $fp = fopen('somefile.txt', 'r');
+
+ fclose($fp);
+
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
</refsect1>
</refentry>