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>
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php