reference/array/functions/current.xml
0a192fcd9cc43c0007de795063b4494974058992
...
...
@@ -43,31 +43,24 @@
43
43
</para>
44
44
&return.falseproblem;
45
45
</refsect1>
46
+

46
47
<refsect1 role="changelog">
47
48
&reftitle.changelog;
48
-
<para>
49
-
<informaltable>
50
-
<tgroup cols="2">
51
-
<thead>
52
-
<row>
53
-
<entry>&Version;</entry>
54
-
<entry>&Description;</entry>
55
-
</row>
56
-
</thead>
57
-
<tbody>
58
-
<row>
59
-
<entry>7.0.0</entry>
60
-
<entry>
61
-
<parameter>array</parameter> is now always passed by value.
62
-
Prior to this version, it was passed by reference if possible,
63
-
and by value otherwise.
64
-
</entry>
65
-
</row>
66
-
</tbody>
67
-
</tgroup>
68
-
</informaltable>
69
-
</para>
49
+
<informaltable>
50
+
<tgroup cols="2">
51
+
<thead>
52
+
<row>
53
+
<entry>&Version;</entry>
54
+
<entry>&Description;</entry>
55
+
</row>
56
+
</thead>
57
+
<tbody>
58
+
&standard.changelog.calling-on-objects;
59
+
</tbody>
60
+
</tgroup>
61
+
</informaltable>
70
62
</refsect1>
63
+

71
64
<refsect1 role="examples">
72
65
&reftitle.examples;
73
66
<para>
...
...
@@ -103,7 +96,7 @@ var_dump(current($arr)); // array(0) { }
103
96
and on an array, whose internal pointer points beyond the end of the elements,
104
97
are indistinguishable from a <type>bool</type> &false; element.
105
98
To properly traverse an array which may contain &false; elements, see the
106
-
<function>foreach</function> function.
99
+
&foreach; control structure.
107
100
</simpara>
108
101
<simpara>
109
102
To still use <function>current</function> and properly check if the value
...
...
@@ -123,6 +116,7 @@ var_dump(current($arr)); // array(0) { }
123
116
<member><function>prev</function></member>
124
117
<member><function>reset</function></member>
125
118
<member><function>next</function></member>
119
+
<member>&foreach;</member>
126
120
</simplelist>
127
121
</para>
128
122
</refsect1>
129
123