PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<diskfreespacefeof>
Last updated: Mon, 16 Jul 2012

fclose

(PHP 3, PHP 4, PHP 5)

fclose -- 关闭一个已打开的文件指针

说明

bool fclose ( resource handle )

handle 指向的文件关闭。

如果成功则返回 TRUE,失败则返回 FALSE

文件指针必须有效,并且是通过 fopen()fsockopen() 成功打开的。

例子 1. 一个简单 fclose() 例子

<?php
  $handle
= fopen('somefile.txt', 'r');
 
fclose($handle);
?>




<diskfreespacefeof>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST