cvs: phpdoc-zh /reference/filesystem/functions is-file.xml
| From: | liuming | Date: | Sun, 14 Aug 2005 14:54:14 +0000 |
| Subject: | cvs: phpdoc-zh /reference/filesystem/functions is-file.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-2262@lists.php.net to get a copy of this message | ||
lm92 Sun Aug 14 10:54:14 2005 EDT
Modified files:
/phpdoc-zh/reference/filesystem/functions is-file.xml
Log:
updated to en version
http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/is-file.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc-zh/reference/filesystem/functions/is-file.xml
diff -u phpdoc-zh/reference/filesystem/functions/is-file.xml:1.3
phpdoc-zh/reference/filesystem/functions/is-file.xml:1.4
--- phpdoc-zh/reference/filesystem/functions/is-file.xml:1.3 Wed Apr 23 19:58:53 2003
+++ phpdoc-zh/reference/filesystem/functions/is-file.xml Sun Aug 14 10:54:12 2005
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="gb2312"?>
-<!-- $Revision: 1.3 $ -->
-<!-- $Author: dallas $ -->
-<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready -->
+<!-- $Revision: 1.4 $ -->
+<!-- $Author: lm92 $ -->
+<!-- EN-Revision: 1.8 Maintainer: dallas Status: ready -->
<refentry id="function.is-file">
<refnamediv>
<refname>is_file</refname>
@@ -16,11 +16,28 @@
<para>
Èç¹ûÎļþ´æÔÚÇÒΪÕý³£µÄÎļþÔò·µ»Ø &true;¡£
</para>
-
+ <para>
+ <example>
+ <title><function>is_file</function> Àý×Ó</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+var_dump(is_file('a_file.txt')) . "\n";
+var_dump(is_file('/usr/bin/')) . "\n";
+?>
+]]>
+ </programlisting>
+ &example.outputs;
+ <screen>
+<![CDATA[
+bool(true)
+bool(false)
+]]>
+ </screen>
+ </example>
+ </para>
¬e.clearstatcache;
-
- ¬e.no-remote;
-
+ &tip.fopen-wrapper.stat;
<para>
²Î¼û <function>is_dir</function> ºÍ
<function>is_link</function>¡£