reference/filesystem/functions/unlink.xml
ea62fb83196997032641b50fe44420305466195e
...
...
@@ -11,7 +11,7 @@
11
11
<methodsynopsis>
12
12
<type>bool</type><methodname>unlink</methodname>
13
13
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
14
-
<methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam>
14
+
<methodparam choice="opt"><type class="union"><type>resource</type><type>null</type></type><parameter>context</parameter><initializer>&null;</initializer></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
Deletes <parameter>filename</parameter>. Similar to the Unix C unlink()
...
...
@@ -30,6 +30,10 @@
30
30
<para>
31
31
Path to the file.
32
32
</para>
33
+
<para>
34
+
If the file is a symlink, the symlink will be deleted. On Windows, to delete
35
+
a symlink to a directory, <function>rmdir</function> has to be used instead.
36
+
</para>
33
37
</listitem>
34
38
</varlistentry>
35
39
<varlistentry>
36
40