reference/strings/functions/stripcslashes.xml
6330e4d73192c49a6867c6bbc3cbf09d63a1e36a
...
...
@@ -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.stripcslashes">
3
+
<refentry xml:id="function.stripcslashes" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>stripcslashes</refname>
6
6
<refpurpose>Un-quote string quoted with <function>addcslashes</function></refpurpose>
...
...
@@ -10,7 +10,7 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>string</type><methodname>stripcslashes</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
Returns a string with backslashes stripped off. Recognizes
...
...
@@ -24,7 +24,7 @@
24
24
<para>
25
25
<variablelist>
26
26
<varlistentry>
27
-
<term><parameter>str</parameter></term>
27
+
<term><parameter>string</parameter></term>
28
28
<listitem>
29
29
<para>
30
30
The string to be unescaped.
...
...
@@ -42,6 +42,24 @@
42
42
</para>
43
43
</refsect1>
44
44

45
+
<refsect1 role="examples">
46
+
&reftitle.examples;
47
+
<para>
48
+
<example>
49
+
<title><function>stripcslashes</function> example</title>
50
+
<programlisting role="php">
51
+
<![CDATA[
52
+
<?php
53
+

54
+
var_dump(stripcslashes('I\'d have a coffee.\nNot a problem.') === "I'd have a coffee.
55
+
Not a problem."); // true
56
+
?>
57
+
]]>
58
+
</programlisting>
59
+
</example>
60
+
</para>
61
+
</refsect1>
62
+

45
63
<refsect1 role="seealso">
46
64
&reftitle.seealso;
47
65
<para>
...
...
@@ -52,7 +70,6 @@
52
70
</refsect1>
53
71

54
72
</refentry>
55
-

56
73
<!-- Keep this comment at the end of the file
57
74
Local variables:
58
75
mode: sgml
59
76