mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Added a simple fclose example.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@100097 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
3bdad6c640
commit
168e3d52f2
1 changed files with 18 additions and 2 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue