reference/filesystem/functions/filetype.xml
e9c706885ef677389883ee30013fd76580657b0f
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.filetype">
3
+
<refentry xml:id="function.filetype" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>filetype</refname>
6
6
<refpurpose>Gets file type</refpurpose>
...
...
@@ -9,7 +9,7 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>string</type><methodname>filetype</methodname>
12
+
<type class="union"><type>string</type><type>false</type></type><methodname>filetype</methodname>
13
13
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
...
...
@@ -46,6 +46,11 @@
46
46
</para>
47
47
</refsect1>
48
48

49
+
<refsect1 role="errors">
50
+
&reftitle.errors;
51
+
&fs.emits.warning.on.failure;
52
+
</refsect1>
53
+

49
54
<refsect1 role="examples">
50
55
&reftitle.examples;
51
56
<para>
...
...
@@ -55,21 +60,24 @@
55
60
<![CDATA[
56
61
<?php
57
62

58
-
echo filetype('/etc/passwd'); // file
59
-
echo filetype('/etc/'); // dir
63
+
echo filetype('/etc/passwd');
64
+
echo "\n";
65
+
echo filetype('/etc/');
60
66

61
67
?>
62
68
]]>
63
69
</programlisting>
70
+
&example.outputs;
71
+
<screen>
72
+
<![CDATA[
73
+
file
74
+
dir
75
+
]]>
76
+
</screen>
64
77
</example>
65
78
</para>
66
79
</refsect1>
67
80

68
-
<refsect1 role="errors">
69
-
&reftitle.errors;
70
-
&fs.emits.warning.on.failure;
71
-
</refsect1>
72
-

73
81
<refsect1 role="notes">
74
82
&reftitle.notes;
75
83
&note.clearstatcache;
...
...
@@ -92,7 +100,6 @@ echo filetype('/etc/'); // dir
92
100
</refsect1>
93
101

94
102
</refentry>
95
-

96
103
<!-- Keep this comment at the end of the file
97
104
Local variables:
98
105
mode: sgml
99
106