reference/strings/functions/vsprintf.xml
f134250210702ab6280ab303b846679177d39f14
...
...
@@ -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.vsprintf">
3
+
<refentry xml:id="function.vsprintf" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>vsprintf</refname>
6
6
<refpurpose>Return a formatted string</refpurpose>
...
...
@@ -11,7 +11,7 @@
11
11
<methodsynopsis>
12
12
<type>string</type><methodname>vsprintf</methodname>
13
13
<methodparam><type>string</type><parameter>format</parameter></methodparam>
14
-
<methodparam><type>array</type><parameter>args</parameter></methodparam>
14
+
<methodparam><type>array</type><parameter>values</parameter></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
Operates as <function>sprintf</function> but accepts an array of
...
...
@@ -23,17 +23,9 @@
23
23
&reftitle.parameters;
24
24
<para>
25
25
<variablelist>
26
+
&strings.parameter.format;
26
27
<varlistentry>
27
-
<term><parameter>format</parameter></term>
28
-
<listitem>
29
-
<para>
30
-
See <function>sprintf</function> for a description of
31
-
<parameter>format</parameter>.
32
-
</para>
33
-
</listitem>
34
-
</varlistentry>
35
-
<varlistentry>
36
-
<term><parameter>args</parameter></term>
28
+
<term><parameter>values</parameter></term>
37
29
<listitem>
38
30
<para>
39
31
</para>
...
...
@@ -47,11 +39,20 @@
47
39
&reftitle.returnvalues;
48
40
<para>
49
41
Return array values as a formatted string according to
50
-
<parameter>format</parameter> (which is described in the documentation
51
-
for <function>sprintf</function>).
42
+
<parameter>format</parameter>.
52
43
</para>
53
44
</refsect1>
54
45

46
+
<refsect1 role="errors">
47
+
&reftitle.errors;
48
+
&strings.errors.vsprintf;
49
+
</refsect1>
50
+

51
+
<refsect1 role="changelog">
52
+
&reftitle.changelog;
53
+
&strings.changelog.vsprintf;
54
+
</refsect1>
55
+

55
56
<refsect1 role="examples">
56
57
&reftitle.examples;
57
58
<para>
...
...
@@ -60,10 +61,16 @@
60
61
<programlisting role="php">
61
62
<![CDATA[
62
63
<?php
63
-
print vsprintf("%04d-%02d-%02d", explode('-', '1988-8-1')); // 1988-08-01
64
+
print vsprintf("%04d-%02d-%02d", explode('-', '1988-8-1'));
64
65
?>
65
66
]]>
66
67
</programlisting>
68
+
&example.outputs;
69
+
<screen>
70
+
<![CDATA[
71
+
1988-08-01
72
+
]]>
73
+
</screen>
67
74
</example>
68
75
</para>
69
76
</refsect1>
...
...
@@ -72,14 +79,20 @@ print vsprintf("%04d-%02d-%02d", explode('-', '1988-8-1')); // 1988-08-01
72
79
&reftitle.seealso;
73
80
<para>
74
81
<simplelist>
82
+
<member><function>printf</function></member>
75
83
<member><function>sprintf</function></member>
84
+
<member><function>fprintf</function></member>
76
85
<member><function>vprintf</function></member>
86
+
<member><function>vfprintf</function></member>
87
+
<member><function>sscanf</function></member>
88
+
<member><function>fscanf</function></member>
89
+
<member><function>number_format</function></member>
90
+
<member><function>date</function></member>
77
91
</simplelist>
78
92
</para>
79
93
</refsect1>
80
94

81
95
</refentry>
82
-

83
96
<!-- Keep this comment at the end of the file
84
97
Local variables:
85
98
mode: sgml
86
99