1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-25 00:02:17 +01:00

Documentation of index reset effect of some array functions - issue #876 (#1077)

Co-authored-by: Alexey Kryuchkov <alexey.kryuchkov@jetbrains.com>

Closes GH-1077.
This commit is contained in:
Salomon88
2021-11-09 15:01:19 +03:00
committed by GitHub
parent 688cc56f14
commit 6a6f43d1c4
14 changed files with 20 additions and 0 deletions

View File

@@ -147,6 +147,13 @@ from one file system to another.</para></note>'>
</note>
'>
<!ENTITY note.reset-index "<note xmlns='http://docbook.org/ns/docbook'>
<para>
Resets array's internal pointer to the first element.
</para>
</note>
">
<!ENTITY note.resource-migration-8.0-dead-function '<note xmlns="http://docbook.org/ns/docbook">
<para>
This function has no effect. Prior to PHP 8.0.0, this function was used to close the resource.

View File

@@ -24,6 +24,7 @@
keys will be re-indexed.
</para>
&note.sort-unstable;
&note.reset-index;
</refsect1>
<refsect1 role="parameters">

View File

@@ -19,6 +19,7 @@
order. All numerical array keys will be modified to start counting from
zero while literal keys won't be changed.
</para>
&note.reset-index;
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;

View File

@@ -22,6 +22,7 @@
element order is significant.
</para>
&note.sort-unstable;
&note.reset-index;
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;

View File

@@ -22,6 +22,7 @@
element order is significant.
</para>
&note.sort-unstable;
&note.reset-index;
</refsect1>
<refsect1 role="parameters">

View File

@@ -17,6 +17,7 @@
in descending order.
</para>
&note.sort-unstable;
&note.reset-index;
</refsect1>
<refsect1 role="parameters">

View File

@@ -17,6 +17,7 @@
in ascending order.
</para>
&note.sort-unstable;
&note.reset-index;
</refsect1>
<refsect1 role="parameters">

View File

@@ -21,6 +21,7 @@
key/value associations. This is described as a "natural ordering".
</para>
&note.sort-unstable;
&note.reset-index;
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;

View File

@@ -19,6 +19,7 @@
(used in <function>sort</function>) can be seen in the example below.
</para>
&note.sort-unstable;
&note.reset-index;
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;

View File

@@ -18,6 +18,7 @@
</para>
&note.sort-unstable;
&note.no-key-association;
&note.reset-index;
</refsect1>
<refsect1 role="parameters">

View File

@@ -84,6 +84,7 @@ foreach ($numbers as $number) {
<refsect1 role="notes">
&reftitle.notes;
&note.no-key-association;
&note.reset-index;
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;

View File

@@ -18,6 +18,7 @@
</para>
&note.sort-unstable;
&note.no-key-association;
&note.reset-index;
</refsect1>
<refsect1 role="parameters">

View File

@@ -23,6 +23,7 @@
element order is significant.
</para>
&note.sort-unstable;
&note.reset-index;
</refsect1>
<refsect1 role="parameters">

View File

@@ -17,6 +17,7 @@
user-supplied comparison function to determine the order.
</para>
&note.sort-unstable;
&note.reset-index;
</refsect1>
<refsect1 role="parameters">