reference/var/functions/var-export.xml
0f27fadf81b66268edf545f13891401b4d53cc38
...
...
@@ -10,8 +10,8 @@
10
10
<refsect1 role="description">
11
11
&reftitle.description;
12
12
<methodsynopsis>
13
-
<type>mixed</type><methodname>var_export</methodname>
14
-
<methodparam><type>mixed</type><parameter>expression</parameter></methodparam>
13
+
<type class="union"><type>string</type><type>null</type></type><methodname>var_export</methodname>
14
+
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
15
15
<methodparam choice="opt"><type>bool</type><parameter>return</parameter><initializer>&false;</initializer></methodparam>
16
16
</methodsynopsis>
17
17
<simpara>
...
...
@@ -26,7 +26,7 @@
26
26
<para>
27
27
<variablelist>
28
28
<varlistentry>
29
-
<term><parameter>expression</parameter></term>
29
+
<term><parameter>value</parameter></term>
30
30
<listitem>
31
31
<para>
32
32
The variable you want to export.
...
...
@@ -55,11 +55,6 @@
55
55
</para>
56
56
</refsect1>
57
57

58
-
<refsect1 role="notes">
59
-
&reftitle.notes;
60
-
&note.uses-ob;
61
-
</refsect1>
62
-

63
58
<refsect1 role="changelog">
64
59
&reftitle.changelog;
65
60
<para>
...
...
@@ -73,6 +68,13 @@
73
68
</thead>
74
69
<tbody>
75
70
<row>
71
+
<entry>8.2.0</entry>
72
+
<entry>
73
+
Exported class names are now fully qualified; previously, the leading
74
+
backslash was ommitted.
75
+
</entry>
76
+
</row>
77
+
<row>
76
78
<entry>7.3.0</entry>
77
79
<entry>
78
80
Now exports <classname>stdClass</classname> objects as an array cast to
...
...
@@ -162,7 +164,7 @@ var_export($person);
162
164
</para>
163
165
<para>
164
166
<example>
165
-
<title>Exporting classes (since PHP 5.1.0)</title>
167
+
<title>Exporting classes</title>
166
168
<programlisting role="php">
167
169
<![CDATA[
168
170
<?php
...
...
@@ -185,7 +187,7 @@ A::__set_state(array(
185
187
</para>
186
188
<para>
187
189
<example>
188
-
<title>Using <link linkend="object.set-state">__set_state()</link> (since PHP 5.1.0)</title>
190
+
<title>Using <link linkend="object.set-state">__set_state()</link></title>
189
191
<programlisting role="php">
190
192
<![CDATA[
191
193
<?php
...
...
@@ -248,7 +250,8 @@ object(A)#2 (2) {
248
250
</note>
249
251
<warning>
250
252
<para>
251
-
When <function>var_export</function> exports objects, the leading backslash is not included in the class name of namespaced classes for maximum compatibility.
253
+
Prior to PHP 8.2.0, when <function>var_export</function> exports objects,
254
+
the leading backslash is not included in the class name of namespaced classes for maximum compatibility.
252
255
</para>
253
256
</warning>
254
257
<note>
...
...
@@ -273,7 +276,6 @@ object(A)#2 (2) {
273
276
</para>
274
277
</refsect1>
275
278
</refentry>
276
-

277
279
<!-- Keep this comment at the end of the file
278
280
Local variables:
279
281
mode: sgml
280
282