reference/var/functions/print-r.xml
d816a0fad6c458d9515f697cc89e26ca9d8069f5
d816a0fad6c458d9515f697cc89e26ca9d8069f5
...
...
@@ -11,8 +11,8 @@
11
11
<refsect1 role="description">
12
12
&reftitle.description;
13
13
<methodsynopsis>
14
-
<type>mixed</type><methodname>print_r</methodname>
15
-
<methodparam><type>mixed</type><parameter>expression</parameter></methodparam>
14
+
<type class="union"><type>string</type><type>true</type></type><methodname>print_r</methodname>
15
+
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
16
16
<methodparam choice="opt"><type>bool</type><parameter>return</parameter><initializer>&false;</initializer></methodparam>
17
17
</methodsynopsis>
18
18
<para>
...
...
@@ -32,7 +32,7 @@
32
32
<para>
33
33
<variablelist>
34
34
<varlistentry>
35
-
<term><parameter>expression</parameter></term>
35
+
<term><parameter>value</parameter></term>
36
36
<listitem>
37
37
<para>
38
38
The expression to be printed.
...
...
@@ -56,7 +56,7 @@
56
56
<refsect1 role="returnvalues">
57
57
&reftitle.returnvalues;
58
58
<para>
59
-
If given a <type>string</type>, <type>integer</type> or <type>float</type>,
59
+
If given a <type>string</type>, <type>int</type> or <type>float</type>,
60
60
the value itself will be printed. If given an <type>array</type>, values
61
61
will be presented in a format that shows keys and elements. Similar
62
62
notation is used for <type>object</type>s.
...
...
@@ -67,9 +67,28 @@
67
67
</para>
68
68
</refsect1>
69
69
70
-
<refsect1 role="notes">
71
-
&reftitle.notes;
72
-
¬e.uses-ob;
70
+
<refsect1 role="changelog">
71
+
&reftitle.changelog;
72
+
<para>
73
+
<informaltable>
74
+
<tgroup cols="2">
75
+
<thead>
76
+
<row>
77
+
<entry>&Version;</entry>
78
+
<entry>&Description;</entry>
79
+
</row>
80
+
</thead>
81
+
<tbody>
82
+
<row>
83
+
<entry>8.4.0</entry>
84
+
<entry>
85
+
Return type changed from <type class="union"><type>string</type><type>bool</type></type> to <type class="union"><type>string</type><type>true</type></type>.
86
+
</entry>
87
+
</row>
88
+
</tbody>
89
+
</tgroup>
90
+
</informaltable>
91
+
</para>
73
92
</refsect1>
74
93
75
94
<refsect1 role="examples">
...
...
@@ -82,7 +101,7 @@
82
101
<pre>
83
102
<?php
84
103
$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x', 'y', 'z'));
85
-
print_r ($a);
104
+
print_r($a);
86
105
?>
87
106
</pre>
88
107
]]>
...
...
@@ -115,6 +134,8 @@ Array
115
134
<?php
116
135
$b = array ('m' => 'monkey', 'foo' => 'bar', 'x' => array ('x', 'y', 'z'));
117
136
$results = print_r($b, true); // $results now contains output from print_r
137
+
138
+
print_r($results);
118
139
?>
119
140
]]>
120
141
</programlisting>
...
...
@@ -122,6 +143,11 @@ $results = print_r($b, true); // $results now contains output from print_r
122
143
</para>
123
144
</refsect1>
124
145
146
+
<refsect1 role="notes">
147
+
&reftitle.notes;
148
+
¬e.uses-ob-php70;
149
+
</refsect1>
150
+
125
151
<refsect1 role="seealso">
126
152
&reftitle.seealso;
127
153
<para>
...
...
@@ -134,7 +160,6 @@ $results = print_r($b, true); // $results now contains output from print_r
134
160
</refsect1>
135
161
136
162
</refentry>
137
-
138
163
<!-- Keep this comment at the end of the file
139
164
Local variables:
140
165
mode: sgml
141
166