reference/strings/functions/stripslashes.xml
8cdc6621f9826d04abc3e50438c010804d7e8683
...
...
@@ -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.stripslashes">
3
+
<refentry xml:id="function.stripslashes" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>stripslashes</refname>
6
6
<refpurpose>Un-quotes a quoted string</refpurpose>
...
...
@@ -10,15 +10,13 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>string</type><methodname>stripslashes</methodname>
13
-
<methodparam><type>string</type><parameter>str</parameter></methodparam>
13
+
<methodparam><type>string</type><parameter>string</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
Un-quotes a quoted string.
17
17
</para>
18
18
<para>
19
-
An example use of <function>stripslashes</function> is when the PHP
20
-
directive <link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link>
21
-
is <literal>on</literal> (it was on by default before PHP 5.4), and you aren't inserting
19
+
<function>stripslashes</function> can be used if you aren't inserting
22
20
this data into a place (such as a database) that requires escaping.
23
21
For example, if you're simply outputting data straight from an HTML form.
24
22
</para>
...
...
@@ -29,7 +27,7 @@
29
27
<para>
30
28
<variablelist>
31
29
<varlistentry>
32
-
<term><parameter>str</parameter></term>
30
+
<term><parameter>string</parameter></term>
33
31
<listitem>
34
32
<para>
35
33
The input string.
...
...
@@ -129,7 +127,6 @@ Array
129
127
</refsect1>
130
128

131
129
</refentry>
132
-

133
130
<!-- Keep this comment at the end of the file
134
131
Local variables:
135
132
mode: sgml
136
133