reference/filesystem/functions/fgetss.xml
cb3e68d99d80a70feafc6f9a1b5f678e4d0522af
...
...
@@ -6,6 +6,10 @@
6
6
<refpurpose>Gets line from file pointer and strip HTML tags</refpurpose>
7
7
</refnamediv>
8
8

9
+
<refsynopsisdiv>
10
+
&warn.deprecated.function-7-3-0.removed-8-0-0;
11
+
</refsynopsisdiv>
12
+

9
13
<refsect1 role="description">
10
14
&reftitle.description;
11
15
<methodsynopsis>
...
...
@@ -18,6 +22,9 @@
18
22
Identical to <function>fgets</function>, except that
19
23
<function>fgetss</function> attempts to strip any NUL bytes, HTML and PHP tags from
20
24
the text it reads.
25
+
The function retains the parsing state from call to call, and as such is not
26
+
equivalent to calling <function>strip_tags</function> on the return value of
27
+
<function>fgets</function>.
21
28
</para>
22
29
</refsect1>
23
30

...
...
@@ -67,6 +74,7 @@
67
74
</refsect1>
68
75

69
76
<refsect1 role="examples">
77
+
&reftitle.examples;
70
78
<para>
71
79
<example>
72
80
<title>Reading a PHP file line-by-line</title>
...
...
@@ -118,6 +126,8 @@ Text outside of the HTML block.
118
126
<member><function>popen</function></member>
119
127
<member><function>fsockopen</function></member>
120
128
<member><function>strip_tags</function></member>
129
+
<member><methodname>SplFileObject::fgetss</methodname></member>
130
+
<member>The <link linkend="filters.string.strip_tags">string.strip_tags</link> filter</member>
121
131
</simplelist>
122
132
</para>
123
133
</refsect1>
124
134