reference/strings/functions/quotemeta.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.quotemeta">
3
+
<refentry xml:id="function.quotemeta" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>quotemeta</refname>
6
6
<refpurpose>Quote meta characters</refpurpose>
...
...
@@ -10,7 +10,7 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>string</type><methodname>quotemeta</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 version of str with a backslash character (<literal>\</literal>)
...
...
@@ -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 input string.
...
...
@@ -39,7 +39,30 @@
39
39
&reftitle.returnvalues;
40
40
<para>
41
41
Returns the string with meta characters quoted, or &false; if an empty
42
-
string is given as <parameter>str</parameter>.
42
+
string is given as <parameter>string</parameter>.
43
+
</para>
44
+
</refsect1>
45
+

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

55
+
var_dump(quotemeta('PHP is a popular scripting language. Fast, flexible, and pragmatic.'));
56
+
?>
57
+
]]>
58
+
</programlisting>
59
+
&example.outputs;
60
+
<screen>
61
+
<![CDATA[
62
+
string(69) "PHP is a popular scripting language\. Fast, flexible, and pragmatic\."
63
+
]]>
64
+
</screen>
65
+
</example>
43
66
</para>
44
67
</refsect1>
45
68

...
...
@@ -59,14 +82,12 @@
59
82
<member><function>nl2br</function></member>
60
83
<member><function>stripslashes</function></member>
61
84
<member><function>stripcslashes</function></member>
62
-
<member><function>ereg</function></member>
63
85
<member><function>preg_quote</function></member>
64
86
</simplelist>
65
87
</para>
66
88
</refsect1>
67
89

68
90
</refentry>
69
-

70
91
<!-- Keep this comment at the end of the file
71
92
Local variables:
72
93
mode: sgml
73
94