reference/strings/functions/vprintf.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.vprintf">
3
+
<refentry xml:id="function.vprintf" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>vprintf</refname>
6
6
<refpurpose>Output a formatted string</refpurpose>
...
...
@@ -11,7 +11,7 @@
11
11
<methodsynopsis>
12
12
<type>int</type><methodname>vprintf</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
Display array values as a formatted string according to
...
...
@@ -28,17 +28,9 @@
28
28
&reftitle.parameters;
29
29
<para>
30
30
<variablelist>
31
+
&strings.parameter.format;
31
32
<varlistentry>
32
-
<term><parameter>format</parameter></term>
33
-
<listitem>
34
-
<para>
35
-
See <function>sprintf</function> for a description of
36
-
<parameter>format</parameter>.
37
-
</para>
38
-
</listitem>
39
-
</varlistentry>
40
-
<varlistentry>
41
-
<term><parameter>args</parameter></term>
33
+
<term><parameter>values</parameter></term>
42
34
<listitem>
43
35
<para>
44
36
</para>
...
...
@@ -55,6 +47,16 @@
55
47
</para>
56
48
</refsect1>
57
49

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

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

85
99
</refentry>
86
-

87
100
<!-- Keep this comment at the end of the file
88
101
Local variables:
89
102
mode: sgml
90
103