svn: /phpdoc/ru/trunk/reference/array/functions/ array-change-key-case.xml array-chunk.xml array-column.xml array-fill.xml array-filter.xml array-key-exists.xml array-key-first.xml array-key-last.xml array-map.xml array-pad.xml array-rand.xml array-replace-recursive.xml array-replace.xml array-search.xml array-slice.xml array-splice.xml array-unique.xml arsort.xml asort.xml compact.xml count.xml current.xml end.xml extract.xml key.xml krsort.xml ksort.xml next.xml prev.xml range.xml reset.xml rs
[email protected] (Sergey Panteleev) Fri, 04 Dec 2020 06:44:55 +0000
| Newsgroups | php.doc.ru |
|---|---|
| Message-ID | <[email protected]> |
sergey Fri, 04 Dec 2020 06:44:55 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=351864
Log:
docs(ru): Updated to English revision
Changed paths:
U phpdoc/ru/trunk/reference/array/functions/array-change-key-case.xml
U phpdoc/ru/trunk/reference/array/functions/array-chunk.xml
U phpdoc/ru/trunk/reference/array/functions/array-column.xml
U phpdoc/ru/trunk/reference/array/functions/array-fill.xml
U phpdoc/ru/trunk/reference/array/functions/array-filter.xml
U phpdoc/ru/trunk/reference/array/functions/array-key-exists.xml
U phpdoc/ru/trunk/reference/array/functions/array-key-first.xml
U phpdoc/ru/trunk/reference/array/functions/array-key-last.xml
U phpdoc/ru/trunk/reference/array/functions/array-map.xml
U phpdoc/ru/trunk/reference/array/functions/array-pad.xml
U phpdoc/ru/trunk/reference/array/functions/array-rand.xml
U phpdoc/ru/trunk/reference/array/functions/array-replace-recursive.xml
U phpdoc/ru/trunk/reference/array/functions/array-replace.xml
U phpdoc/ru/trunk/reference/array/functions/array-search.xml
U phpdoc/ru/trunk/reference/array/functions/array-slice.xml
U phpdoc/ru/trunk/reference/array/functions/array-splice.xml
U phpdoc/ru/trunk/reference/array/functions/array-unique.xml
U phpdoc/ru/trunk/reference/array/functions/arsort.xml
U phpdoc/ru/trunk/reference/array/functions/asort.xml
U phpdoc/ru/trunk/reference/array/functions/compact.xml
U phpdoc/ru/trunk/reference/array/functions/count.xml
U phpdoc/ru/trunk/reference/array/functions/current.xml
U phpdoc/ru/trunk/reference/array/functions/end.xml
U phpdoc/ru/trunk/reference/array/functions/extract.xml
U phpdoc/ru/trunk/reference/array/functions/key.xml
U phpdoc/ru/trunk/reference/array/functions/krsort.xml
U phpdoc/ru/trunk/reference/array/functions/ksort.xml
U phpdoc/ru/trunk/reference/array/functions/next.xml
U phpdoc/ru/trunk/reference/array/functions/prev.xml
U phpdoc/ru/trunk/reference/array/functions/range.xml
U phpdoc/ru/trunk/reference/array/functions/reset.xml
U phpdoc/ru/trunk/reference/array/functions/rsort.xml
U phpdoc/ru/trunk/reference/array/functions/sort.xml
U phpdoc/ru/trunk/reference/array/functions/uasort.xml
U phpdoc/ru/trunk/reference/array/functions/uksort.xml
U phpdoc/ru/trunk/reference/array/functions/usort.xml
svn-diffs-351864.txt
(text/x-diff, 67.2 KB)
Modified: phpdoc/ru/trunk/reference/array/functions/array-change-key-case.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/array-change-key-case.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/array-change-key-case.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 331477 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.array-change-key-case" xmlns="http://docbook.org/ns/docbook">
@@ -13,7 +13,7 @@
<methodsynopsis>
<type>array</type><methodname>array_change_key_case</methodname>
<methodparam><type>array</type><parameter>array</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>case</parameter><initializer>CASE_LOWER</initializer></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>case</parameter><initializer><constant>CASE_LOWER</constant></initializer></methodparam>
</methodsynopsis>
<para>
Возвращает массив <parameter>array</parameter>, все ключи
@@ -105,7 +105,6 @@
</note>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/array-chunk.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/array-chunk.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/array-chunk.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 343899 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.array-chunk" xmlns="http://docbook.org/ns/docbook">
@@ -13,13 +13,13 @@
<methodsynopsis>
<type>array</type><methodname>array_chunk</methodname>
<methodparam><type>array</type><parameter>array</parameter></methodparam>
- <methodparam><type>int</type><parameter>size</parameter></methodparam>
+ <methodparam><type>int</type><parameter>length</parameter></methodparam>
<methodparam choice="opt"><type>bool</type><parameter>preserve_keys</parameter><initializer>&false;</initializer></methodparam>
</methodsynopsis>
<para>
- Разбивает массив на несколько массивов размером в <parameter>size</parameter> элементов.
+ Разбивает массив на несколько массивов размером в <parameter>length</parameter> элементов.
Последний массив из полученных может содержать меньшее
- количество значений, чем указано в <parameter>size</parameter>.
+ количество значений, чем указано в <parameter>length</parameter>.
</para>
</refsect1>
@@ -38,7 +38,7 @@
</varlistentry>
<varlistentry>
- <term><parameter>size</parameter></term>
+ <term><parameter>length</parameter></term>
<listitem>
<para>
Размер каждой части
@@ -65,7 +65,7 @@
&reftitle.returnvalues;
<para>
Возвращает многомерный массив с числовыми индексами, начинающимися с нуля,
- каждый элемент которого содержит <parameter>size</parameter> элементов из
+ каждый элемент которого содержит <parameter>length</parameter> элементов из
оригинального массива.
</para>
</refsect1>
@@ -73,7 +73,7 @@
<refsect1 role="errors">
&reftitle.errors;
<para>
- Если <parameter>size</parameter> меньше 1, будет сгенерирована
+ Если <parameter>length</parameter> меньше 1, будет сгенерирована
ошибка уровня <constant>E_WARNING</constant> и возвращен &null;.
</para>
</refsect1>
@@ -151,7 +151,6 @@
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/array-column.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/array-column.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/array-column.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 346011 Maintainer: rjhdby Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: rjhdby Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
<refentry xml:id="function.array-column" xmlns="http://docbook.org/ns/docbook">
@@ -11,13 +11,13 @@
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>array_column</methodname>
- <methodparam><type>array</type><parameter>input</parameter></methodparam>
- <methodparam><type>mixed</type><parameter>column_key</parameter></methodparam>
- <methodparam choice="opt"><type>mixed</type><parameter>index_key</parameter><initializer>&null;</initializer></methodparam>
+ <methodparam><type>array</type><parameter>array</parameter></methodparam>
+ <methodparam><type class="union"><type>int</type><type>string</type><type>null</type></type><parameter>column_key</parameter></methodparam>
+ <methodparam choice="opt"><type class="union"><type>int</type><type>string</type><type>null</type></type><parameter>index_key</parameter><initializer>&null;</initializer></methodparam>
</methodsynopsis>
<para>
<function>array_column</function> возвращает массив из значений столбца массива
- <parameter>input</parameter> с ключом <parameter>column_key</parameter>.
+ <parameter>array</parameter> с ключом <parameter>column_key</parameter>.
Опционально можно указать <parameter>index_key</parameter>, чтобы
индексировать возвращаемый массив значениями из столбца с ключом
<parameter>index_key</parameter> входного массива.
@@ -28,7 +28,7 @@
<para>
<variablelist>
<varlistentry>
- <term><parameter>input</parameter></term>
+ <term><parameter>array</parameter></term>
<listitem>
<para>
Многомерный массив или массив объектов, из которого будет производиться выборка
@@ -86,7 +86,7 @@
<row>
<entry>7.0.0</entry>
<entry>
- Добавлена возможность использовать массив объектов в <parameter>input</parameter>.
+ Добавлена возможность использовать массив объектов в <parameter>array</parameter>.
</entry>
</row>
</tbody>
@@ -282,7 +282,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/array-fill.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/array-fill.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/array-fill.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 335201 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.array-fill" xmlns="http://docbook.org/ns/docbook">
@@ -13,11 +13,11 @@
<methodsynopsis>
<type>array</type><methodname>array_fill</methodname>
<methodparam><type>int</type><parameter>start_index</parameter></methodparam>
- <methodparam><type>int</type><parameter>num</parameter></methodparam>
+ <methodparam><type>int</type><parameter>count</parameter></methodparam>
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
</methodsynopsis>
<para>
- Заполняет массив <parameter>num</parameter> элементами со значением
+ Заполняет массив <parameter>count</parameter> элементами со значением
<parameter>value</parameter>, начиная с ключа <parameter>start_index</parameter>.
</para>
</refsect1>
@@ -44,7 +44,7 @@
</varlistentry>
<varlistentry>
- <term><parameter>num</parameter></term>
+ <term><parameter>count</parameter></term>
<listitem>
<para>
Количество вставляемых элементов.
@@ -77,7 +77,7 @@
&reftitle.errors;
<para>
Вызывает предупреждение <constant>E_WARNING</constant> в случае, если
- параметр <parameter>num</parameter> меньше нуля.
+ параметр <parameter>count</parameter> меньше нуля.
</para>
</refsect1>
@@ -96,8 +96,8 @@
<row>
<entry>5.6.0</entry>
<entry>
- <parameter>num</parameter> теперь может быть равен нулю. До этого
- <parameter>num</parameter> должен был быть больше нуля.
+ <parameter>count</parameter> теперь может быть равен нулю. До этого
+ <parameter>count</parameter> должен был быть больше нуля.
</entry>
</row>
</tbody>
@@ -166,7 +166,6 @@
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/array-filter.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/array-filter.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/array-filter.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 350489 Maintainer: sergey Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: sergey Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.array-filter" xmlns="http://docbook.org/ns/docbook">
@@ -14,8 +14,8 @@
<methodsynopsis>
<type>array</type><methodname>array_filter</methodname>
<methodparam><type>array</type><parameter>array</parameter></methodparam>
- <methodparam choice="opt"><type>callable</type><parameter>callback</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>flag</parameter><initializer>0</initializer></methodparam>
+ <methodparam choice="opt"><type class="union"><type>callable</type><type>null</type></type><parameter>callback</parameter><initializer>&null;</initializer></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer>0</initializer></methodparam>
</methodsynopsis>
<para>
Обходит каждое значение массива <parameter>array</parameter>,
@@ -58,7 +58,7 @@
</varlistentry>
<varlistentry>
- <term><parameter>flag</parameter></term>
+ <term><parameter>mode</parameter></term>
<listitem>
<para>
Флаг, определяющий, какие аргументы передавать в <parameter>callback</parameter>:
@@ -100,9 +100,15 @@
</thead>
<tbody>
<row>
+ <entry>8.0.0</entry>
+ <entry>
+ <parameter>callback</parameter> теперь допускает значение null.
+ </entry>
+ </row>
+ <row>
<entry>5.6.0</entry>
<entry>
- Добавлен необязательный параметр <parameter>flag</parameter> и константы
+ Добавлен необязательный параметр <parameter>mode</parameter> и константы
<constant>ARRAY_FILTER_USE_KEY</constant> и
<constant>ARRAY_FILTER_USE_BOTH</constant>
</entry>
@@ -204,7 +210,7 @@
</example>
<example>
<title><function>array_filter</function> с указанным
- <parameter>flag</parameter></title>
+ <parameter>mode</parameter></title>
<programlisting role="php">
<![CDATA[
<?php
@@ -262,7 +268,6 @@
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/array-key-exists.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/array-key-exists.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/array-key-exists.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 340435 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
-<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.array-key-exists">
+<refentry xml:id="function.array-key-exists" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>array_key_exists</refname>
<refpurpose>Проверяет, присутствует ли в массиве указанный ключ или индекс</refpurpose>
@@ -12,7 +12,7 @@
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>array_key_exists</methodname>
- <methodparam><type>mixed</type><parameter>key</parameter></methodparam>
+ <methodparam><type class="union"><type>string</type><type>int</type></type><parameter>key</parameter></methodparam>
<methodparam><type>array</type><parameter>array</parameter></methodparam>
</methodsynopsis>
<para>
@@ -130,7 +130,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/array-key-first.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/array-key-first.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/array-key-first.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 347396 Maintainer: lex Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: lex Status: ready -->
<!-- Reviewed: yes Maintainer: sergey -->
-
<refentry xml:id="function.array-key-first" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>array_key_first</refname>
@@ -12,7 +11,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>mixed</type><methodname>array_key_first</methodname>
+ <type class="union"><type>int</type><type>string</type><type>null</type></type><methodname>array_key_first</methodname>
<methodparam><type>array</type><parameter>array</parameter></methodparam>
</methodsynopsis>
<para>
@@ -109,7 +108,6 @@
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/array-key-last.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/array-key-last.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/array-key-last.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 345342 Maintainer: lex Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: lex Status: ready -->
<!-- Reviewed: yes Maintainer: sergey -->
-
<refentry xml:id="function.array-key-last" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>array_key_last</refname>
@@ -12,7 +11,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>mixed</type><methodname>array_key_last</methodname>
+ <type class="union"><type>int</type><type>string</type><type>null</type></type><methodname>array_key_last</methodname>
<methodparam><type>array</type><parameter>array</parameter></methodparam>
</methodsynopsis>
<para>
@@ -52,7 +51,6 @@
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/array-map.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/array-map.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/array-map.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 351129 Maintainer: sergey Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: sergey Status: ready -->
<!-- Reviewed: no -->
-
-<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.array-map">
+<refentry xml:id="function.array-map" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>array_map</refname>
<refpurpose>Применяет callback-функцию ко всем элементам указанных массивов</refpurpose>
@@ -13,7 +12,7 @@
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>array_map</methodname>
- <methodparam><type>callable</type><parameter>callback</parameter></methodparam>
+ <methodparam><type class="union"><type>callable</type><type>null</type></type><parameter>callback</parameter></methodparam>
<methodparam><type>array</type><parameter>array</parameter></methodparam>
<methodparam rep="repeat"><type>array</type><parameter>arrays</parameter></methodparam>
</methodsynopsis>
@@ -386,7 +385,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/array-pad.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/array-pad.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/array-pad.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 331477 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
-<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.array-pad">
+<refentry xml:id="function.array-pad" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>array_pad</refname>
<refpurpose>Дополнить массив определенным значением до указанной длины</refpurpose>
@@ -13,17 +13,17 @@
<methodsynopsis>
<type>array</type><methodname>array_pad</methodname>
<methodparam><type>array</type><parameter>array</parameter></methodparam>
- <methodparam><type>int</type><parameter>size</parameter></methodparam>
+ <methodparam><type>int</type><parameter>length</parameter></methodparam>
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
</methodsynopsis>
<para>
Функция <function>array_pad</function> возвращает копию массива
<parameter>array</parameter>, дополненного до размера
- <parameter>size</parameter> элементами
+ <parameter>length</parameter> элементами
со значением <parameter>value</parameter>. Если параметр
- <parameter>size</parameter> положителен, то массив увеличивается
+ <parameter>length</parameter> положителен, то массив увеличивается
вправо, если отрицателен - влево. Если абсолютное значение
- параметра <parameter>size</parameter> меньше или равно
+ параметра <parameter>length</parameter> меньше или равно
размеру массива <parameter>array</parameter>,
функция не производит никаких операций.
За один раз возможно добавить максимум 1048576 элементов.
@@ -43,7 +43,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>size</parameter></term>
+ <term><parameter>length</parameter></term>
<listitem>
<para>
Новый размер массива.
@@ -55,7 +55,7 @@
<listitem>
<para>
Дополняемое значение, если длина массива <parameter>array</parameter>
- меньше <parameter>size</parameter>.
+ меньше <parameter>length</parameter>.
</para>
</listitem>
</varlistentry>
@@ -67,10 +67,10 @@
&reftitle.returnvalues;
<para>
Возвращает копию <parameter>array</parameter>, дополненного до размера
- указанного <parameter>size</parameter> значением
- <parameter>value</parameter>. Если параметр <parameter>size</parameter>
+ указанного <parameter>length</parameter> значением
+ <parameter>value</parameter>. Если параметр <parameter>length</parameter>
положителен, то массив дополняется вправо, если он отрицателен - влево.
- Если абсолютное значение <parameter>size</parameter> меньше
+ Если абсолютное значение <parameter>length</parameter> меньше
либо равно длине <parameter>array</parameter>, то дополнение не происходит.
</para>
</refsect1>
@@ -108,7 +108,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/array-rand.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/array-rand.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/array-rand.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 350939 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.array-rand" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>mixed</type><methodname>array_rand</methodname>
+ <type class="union"><type>int</type><type>string</type><type>array</type></type><methodname>array_rand</methodname>
<methodparam><type>array</type><parameter>array</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>num</parameter><initializer>1</initializer></methodparam>
</methodsynopsis>
@@ -107,7 +107,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/array-replace-recursive.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/array-replace-recursive.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/array-replace-recursive.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 351129 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.array-replace-recursive" xmlns="http://docbook.org/ns/docbook">
@@ -12,7 +12,7 @@
<methodsynopsis>
<type>array</type><methodname>array_replace_recursive</methodname>
<methodparam><type>array</type><parameter>array</parameter></methodparam>
- <methodparam choice="opt"><type>array</type><parameter>replacements</parameter></methodparam>
+ <methodparam rep="repeat"><type>array</type><parameter>replacements</parameter></methodparam>
</methodsynopsis>
<para>
<function>array_replace_recursive</function> заменяет значения массива
@@ -167,7 +167,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/array-replace.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/array-replace.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/array-replace.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 351129 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: tmn Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.array-replace" xmlns="http://docbook.org/ns/docbook">
@@ -12,7 +12,7 @@
<methodsynopsis>
<type>array</type><methodname>array_replace</methodname>
<methodparam><type>array</type><parameter>array</parameter></methodparam>
- <methodparam choice="opt"><type>array</type><parameter>replacements</parameter></methodparam>
+ <methodparam rep="repeat"><type>array</type><parameter>replacements</parameter></methodparam>
</methodsynopsis>
<para>
<function>array_replace</function> замещает значения массива
@@ -104,7 +104,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/array-search.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/array-search.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/array-search.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 350655 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.array-search" xmlns="http://docbook.org/ns/docbook">
@@ -11,7 +11,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>mixed</type><methodname>array_search</methodname>
+ <type class="union"><type>int</type><type>string</type><type>false</type></type><methodname>array_search</methodname>
<methodparam><type>mixed</type><parameter>needle</parameter></methodparam>
<methodparam><type>array</type><parameter>haystack</parameter></methodparam>
<methodparam choice="opt"><type>bool</type><parameter>strict</parameter><initializer>&false;</initializer></methodparam>
@@ -109,7 +109,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/array-slice.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/array-slice.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/array-slice.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 350645 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.array-slice" xmlns="http://docbook.org/ns/docbook">
@@ -13,7 +13,7 @@
<type>array</type><methodname>array_slice</methodname>
<methodparam><type>array</type><parameter>array</parameter></methodparam>
<methodparam><type>int</type><parameter>offset</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>length</parameter><initializer>&null;</initializer></methodparam>
+ <methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>length</parameter><initializer>&null;</initializer></methodparam>
<methodparam choice="opt"><type>bool</type><parameter>preserve_keys</parameter><initializer>&false;</initializer></methodparam>
</methodsynopsis>
<para>
@@ -204,7 +204,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/array-splice.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/array-splice.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/array-splice.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 347729 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.array-splice" xmlns="http://docbook.org/ns/docbook">
@@ -11,20 +11,20 @@
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>array_splice</methodname>
- <methodparam><type>array</type><parameter role="reference">input</parameter></methodparam>
+ <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
<methodparam><type>int</type><parameter>offset</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>length</parameter><initializer>count($input)</initializer></methodparam>
- <methodparam choice="opt"><type>mixed</type><parameter>replacement</parameter><initializer>array()</initializer></methodparam>
+ <methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>length</parameter><initializer>&null;</initializer></methodparam>
+ <methodparam choice="opt"><type>mixed</type><parameter>replacement</parameter><initializer>[]</initializer></methodparam>
</methodsynopsis>
<para>
Удаляет <parameter>length</parameter> элементов, расположенных на расстоянии
- <parameter>offset</parameter> из массива <parameter>input</parameter>, и заменяет их
+ <parameter>offset</parameter> из массива <parameter>array</parameter>, и заменяет их
элементами массива <parameter>replacement</parameter>, если он передан в качестве
параметра.
</para>
<note>
<para>
- Обратите внимание, что числовые ключи в массиве <parameter>input</parameter>
+ Обратите внимание, что числовые ключи в массиве <parameter>array</parameter>
не сохраняются.
</para>
</note>
@@ -42,7 +42,7 @@
<para>
<variablelist>
<varlistentry>
- <term><parameter>input</parameter></term>
+ <term><parameter>array</parameter></term>
<listitem>
<para>
Входной массив.
@@ -54,7 +54,7 @@
<listitem>
<para>
Если параметр <parameter>offset</parameter> положителеный, будут удалены элементы,
- находящиеся на расстоянии offset от начала <parameter>input</parameter>.
+ находящиеся на расстоянии offset от начала <parameter>array</parameter>.
</para>
<para>
Если <parameter>offset</parameter> отрицателеный, будут удалены
@@ -126,6 +126,29 @@
Возвращает массив, содержащий удалённые элементы.
</para>
</refsect1>
+
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>8.0.0</entry>
+ <entry>
+ <parameter>length</parameter> теперь допускает значение null.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </refsect1>
+
<refsect1 role="examples">
&reftitle.examples;
<para>
@@ -239,7 +262,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/array-unique.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/array-unique.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/array-unique.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 350654 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.array-unique" xmlns="http://docbook.org/ns/docbook">
@@ -13,7 +13,7 @@
<methodsynopsis>
<type>array</type><methodname>array_unique</methodname>
<methodparam><type>array</type><parameter>array</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter><initializer>SORT_STRING</initializer></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>SORT_STRING</constant></initializer></methodparam>
</methodsynopsis>
<para>
Принимает входной массив <parameter>array</parameter> и возвращает новый массив
@@ -21,7 +21,7 @@
</para>
<para>
Обратите внимание, что ключи сохранятся. Если в соответствии с заданными
- <parameter>sort_flags</parameter> несколько элементов определяются как
+ <parameter>flags</parameter> несколько элементов определяются как
идентичные, то будут сохранены ключ и значение первого такого элемента.
</para>
<note>
@@ -46,10 +46,10 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>sort_flags</parameter></term>
+ <term><parameter>flags</parameter></term>
<listitem>
<para>
- Можно использовать необязательный второй параметр <parameter>sort_flags</parameter>
+ Можно использовать необязательный второй параметр <parameter>flags</parameter>
для изменения поведения сортировки с помощью следующих значений:
</para>
<para>
@@ -100,7 +100,7 @@
<row>
<entry>7.2.0</entry>
<entry>
- Если <parameter>sort_flags</parameter> равен
+ Если <parameter>flags</parameter> равен
<constant>SORT_STRING</constant>, ранее массив
<parameter>array</parameter> копировался, а не уникальные элементы
удалялись (сохраняя значения цифровых индексов),
@@ -186,7 +186,6 @@
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/arsort.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/arsort.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/arsort.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 339490 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.arsort" xmlns="http://docbook.org/ns/docbook">
@@ -12,7 +12,7 @@
<methodsynopsis>
<type>bool</type><methodname>arsort</methodname>
<methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter><initializer>SORT_REGULAR</initializer></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>SORT_REGULAR</constant></initializer></methodparam>
</methodsynopsis>
<para>
Эта функция сортирует массив в обратном порядке таким образом,
@@ -37,11 +37,11 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>sort_flags</parameter></term>
+ <term><parameter>flags</parameter></term>
<listitem>
<para>
Вы можете изменить поведение сортировки, используя дополнительный
- параметр <parameter>sort_flags</parameter>, подробнее
+ параметр <parameter>flags</parameter>, подробнее
см. <function>sort</function>.
</para>
</listitem>
@@ -97,7 +97,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/asort.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/asort.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/asort.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 339490 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.asort" xmlns="http://docbook.org/ns/docbook">
@@ -12,7 +12,7 @@
<methodsynopsis>
<type>bool</type><methodname>asort</methodname>
<methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter><initializer>SORT_REGULAR</initializer></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>SORT_REGULAR</constant></initializer></methodparam>
</methodsynopsis>
<para>
Эта функция сортирует массив таким образом, что сохраняются
@@ -35,11 +35,11 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>sort_flags</parameter></term>
+ <term><parameter>flags</parameter></term>
<listitem>
<para>
Вы можете изменить поведение сортировки, используя
- дополнительный параметр <parameter>sort_flags</parameter>,
+ дополнительный параметр <parameter>flags</parameter>,
подробнее см. <function>sort</function>.
</para>
</listitem>
@@ -95,7 +95,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/compact.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/compact.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/compact.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 351129 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.compact" xmlns="http://docbook.org/ns/docbook">
@@ -11,8 +11,8 @@
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>compact</methodname>
- <methodparam><type>mixed</type><parameter>var_name</parameter></methodparam>
- <methodparam rep="repeat"><type>mixed</type><parameter>var_names</parameter></methodparam>
+ <methodparam><type class="union"><type>array</type><type>string</type></type><parameter>var_name</parameter></methodparam>
+ <methodparam rep="repeat"><type class="union"><type>array</type><type>string</type></type><parameter>var_names</parameter></methodparam>
</methodsynopsis>
<para>
Создает массив, содержащий переменные и их значения.
@@ -143,7 +143,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/count.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/count.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/count.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 346403 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.count" xmlns="http://docbook.org/ns/docbook">
@@ -11,8 +11,8 @@
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>count</methodname>
- <methodparam><type>mixed</type><parameter>array_or_countable</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer>COUNT_NORMAL</initializer></methodparam>
+ <methodparam><type class="union"><type>Countable</type><type>array</type></type><parameter>value</parameter></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer><constant>COUNT_NORMAL</constant></initializer></methodparam>
</methodsynopsis>
<para>
Подсчитывает количество элементов массива или чего-то в объекте.
@@ -37,7 +37,7 @@
<para>
<variablelist>
<varlistentry>
- <term><parameter>array_or_countable</parameter></term>
+ <term><parameter>value</parameter></term>
<listitem>
<para>
Массив или объект, реализующий <classname>Countable</classname>.
@@ -71,11 +71,11 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Возвращает количество элементов в <parameter>array_or_countable</parameter>.
+ Возвращает количество элементов в <parameter>value</parameter>.
Если параметр не является массивом или объектом,
реализующим интерфейс <classname>Countable</classname>,
будет возвращена <literal>1</literal>.
- За одним исключением: если <parameter>array_or_countable</parameter> - &null;,
+ За одним исключением: если <parameter>value</parameter> - &null;,
то будет возвращён <literal>0</literal>.
</para>
</refsect1>
@@ -154,7 +154,7 @@
<entry>7.2.0</entry>
<entry>
<function>count</function> теперь будет выдавать предупреждение о некорректных исчисляемых типов,
- переданных в параметр <parameter>array_or_countable</parameter>.
+ переданных в параметр <parameter>value</parameter>.
</entry>
</row>
</tbody>
@@ -174,7 +174,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/current.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/current.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/current.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 351133 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.current" xmlns="http://docbook.org/ns/docbook">
@@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>current</methodname>
- <methodparam><type>array</type><parameter>array</parameter></methodparam>
+ <methodparam><type class="union"><type>array</type><type>object</type></type><parameter>array</parameter></methodparam>
</methodsynopsis>
<para>
У каждого массива имеется внутренний указатель на его "текущий" элемент,
@@ -128,7 +128,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/end.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/end.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/end.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 345342 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.end" xmlns="http://docbook.org/ns/docbook">
@@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>end</methodname>
- <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
+ <methodparam><type class="union"><type>array</type><type>object</type></type><parameter role="reference">array</parameter></methodparam>
</methodsynopsis>
<para>
<function>end</function> устанавливает внутренний указатель
@@ -76,7 +76,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/extract.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/extract.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/extract.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 343853 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.extract" xmlns="http://docbook.org/ns/docbook">
@@ -10,10 +10,10 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>int</type><methodname>extract</methodname>
- <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>EXTR_OVERWRITE</initializer></methodparam>
- <methodparam choice="opt"><type>string</type><parameter>prefix</parameter><initializer>&null;</initializer></methodparam>
+ <type>int</type><methodname>extract</methodname>
+ <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>EXTR_OVERWRITE</constant></initializer></methodparam>
+ <methodparam choice="opt"><type>string</type><parameter>prefix</parameter><initializer>""</initializer></methodparam>
</methodsynopsis>
<para>
Импортирует переменные из массива в текущую таблицу символов.
@@ -337,7 +337,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/key.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/key.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/key.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 342894 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
@@ -11,8 +11,8 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>mixed</type><methodname>key</methodname>
- <methodparam><type>array</type><parameter>array</parameter></methodparam>
+ <type class="union"><type>int</type><type>string</type><type>null</type></type><methodname>key</methodname>
+ <methodparam><type class="union"><type>array</type><type>object</type></type><parameter>array</parameter></methodparam>
</methodsynopsis>
<para>
<function>key</function> возвращает индекс текущего элемента массива.
@@ -115,7 +115,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/krsort.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/krsort.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/krsort.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.krsort" xmlns="http://docbook.org/ns/docbook">
@@ -12,7 +12,7 @@
<methodsynopsis>
<type>bool</type><methodname>krsort</methodname>
<methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter><initializer>SORT_REGULAR</initializer></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>SORT_REGULAR</constant></initializer></methodparam>
</methodsynopsis>
<para>
Сортирует массив по ключам в обратном порядке, сохраняя отношения между ключами и
@@ -32,11 +32,11 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>sort_flags</parameter></term>
+ <term><parameter>flags</parameter></term>
<listitem>
<para>
Вы можете изменить поведение сортировки, используя дополнительный
- параметр <parameter>sort_flags</parameter>, подробнее
+ параметр <parameter>flags</parameter>, подробнее
см. <function>sort</function>.
</para>
</listitem>
@@ -89,7 +89,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/ksort.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/ksort.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/ksort.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.ksort" xmlns="http://docbook.org/ns/docbook">
@@ -12,7 +12,7 @@
<methodsynopsis>
<type>bool</type><methodname>ksort</methodname>
<methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter><initializer>SORT_REGULAR</initializer></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>SORT_REGULAR</constant></initializer></methodparam>
</methodsynopsis>
<para>
Сортирует массив по ключам, сохраняя отношения между ключами и значениями.
@@ -32,11 +32,11 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>sort_flags</parameter></term>
+ <term><parameter>flags</parameter></term>
<listitem>
<para>
Вы можете изменить поведение сортировки, используя дополнительный
- параметр <parameter>sort_flags</parameter>, подробнее
+ параметр <parameter>flags</parameter>, подробнее
см. функцию <function>sort</function>.
</para>
</listitem>
@@ -88,7 +88,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/next.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/next.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/next.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 351133 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.next" xmlns="http://docbook.org/ns/docbook">
@@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>next</methodname>
- <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
+ <methodparam><type class="union"><type>array</type><type>object</type></type><parameter role="reference">array</parameter></methodparam>
</methodsynopsis>
<para>
<function>next</function> ведёт себя подобно
@@ -98,7 +98,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/prev.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/prev.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/prev.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 351133 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.prev" xmlns="http://docbook.org/ns/docbook">
@@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>prev</methodname>
- <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
+ <methodparam><type class="union"><type>array</type><type>object</type></type><parameter role="reference">array</parameter></methodparam>
</methodsynopsis>
<para>
Передвигает внутренний указатель массива на одну позицию назад.
@@ -90,7 +90,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/range.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/range.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/range.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 351123 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.range" xmlns="http://docbook.org/ns/docbook">
@@ -11,8 +11,8 @@
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>range</methodname>
- <methodparam><type>mixed</type><parameter>start</parameter></methodparam>
- <methodparam><type>mixed</type><parameter>end</parameter></methodparam>
+ <methodparam><type class="union"><type>string</type><type>int</type><type>float</type></type><parameter>start</parameter></methodparam>
+ <methodparam><type class="union"><type>string</type><type>int</type><type>float</type></type><parameter>end</parameter></methodparam>
<methodparam choice="opt"><type class="union"><type>int</type><type>float</type></type><parameter>step</parameter><initializer>1</initializer></methodparam>
</methodsynopsis>
<para>
@@ -115,7 +115,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/reset.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/reset.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/reset.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 351133 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.reset" xmlns="http://docbook.org/ns/docbook">
@@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>reset</methodname>
- <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
+ <methodparam><type class="union"><type>array</type><type>object</type></type><parameter role="reference">array</parameter></methodparam>
</methodsynopsis>
<para>
<function>reset</function> перемещает внутренний указатель массива
@@ -99,7 +99,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/rsort.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/rsort.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/rsort.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 339490 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.rsort" xmlns="http://docbook.org/ns/docbook">
@@ -12,7 +12,7 @@
<methodsynopsis>
<type>bool</type><methodname>rsort</methodname>
<methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter><initializer>SORT_REGULAR</initializer></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>SORT_REGULAR</constant></initializer></methodparam>
</methodsynopsis>
<para>
Эта функция сортирует массив в обратном порядке (от большего к меньшему).
@@ -32,11 +32,11 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>sort_flags</parameter></term>
+ <term><parameter>flags</parameter></term>
<listitem>
<para>
Вы можете изменить поведение сортировки, используя дополнительный
- параметр <parameter>sort_flags</parameter>, подробнее
+ параметр <parameter>flags</parameter>, подробнее
смотрите функцию <function>sort</function>.
</para>
</listitem>
@@ -96,7 +96,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/sort.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/sort.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/sort.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 350645 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.sort" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -12,7 +12,7 @@
<methodsynopsis>
<type>bool</type><methodname>sort</methodname>
<methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter><initializer>SORT_REGULAR</initializer></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>SORT_REGULAR</constant></initializer></methodparam>
</methodsynopsis>
<para>
Функция сортирует массив. После завершения работы функции элементы
@@ -33,10 +33,10 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>sort_flags</parameter></term>
+ <term><parameter>flags</parameter></term>
<listitem>
<para>
- Дополнительный второй параметр <parameter>sort_flags</parameter>
+ Дополнительный второй параметр <parameter>flags</parameter>
можно использовать для изменения поведения сортировки,
используя следующие значения:
</para>
@@ -169,7 +169,7 @@
<simpara>
Будьте осторожны при сортировке массивов, содержащих элементы разных типов,
так как в этом случае результат работы функции <function>sort</function>
- может быть неожиданным, если параметр <parameter>sort_flags</parameter> равен <constant>SORT_REGULAR</constant>.
+ может быть неожиданным, если параметр <parameter>flags</parameter> равен <constant>SORT_REGULAR</constant>.
</simpara>
</warning>
</refsect1>
@@ -184,7 +184,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/uasort.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/uasort.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/uasort.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 339490 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.uasort" xmlns="http://docbook.org/ns/docbook">
@@ -13,7 +13,7 @@
<methodsynopsis>
<type>bool</type><methodname>uasort</methodname>
<methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
- <methodparam><type>callable</type><parameter>value_compare_func</parameter></methodparam>
+ <methodparam><type>callable</type><parameter>callback</parameter></methodparam>
</methodsynopsis>
<para>
Эта функция сортирует массив таким образом, что его индексы
@@ -40,7 +40,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>value_compare_func</parameter></term>
+ <term><parameter>callback</parameter></term>
<listitem>
<para>
Смотрите функции <function>usort</function> и <function>uksort</function> для
@@ -126,7 +126,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/uksort.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/uksort.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/uksort.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 339490 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.uksort" xmlns="http://docbook.org/ns/docbook">
@@ -12,7 +12,7 @@
<methodsynopsis>
<type>bool</type><methodname>uksort</methodname>
<methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
- <methodparam><type>callable</type><parameter>key_compare_func</parameter></methodparam>
+ <methodparam><type>callable</type><parameter>callback</parameter></methodparam>
</methodsynopsis>
<para>
<function>uksort</function> отсортирует массив, используя для сравнения
@@ -35,7 +35,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>key_compare_func</parameter></term>
+ <term><parameter>callback</parameter></term>
<listitem>
<para>
&return.callbacksort;
@@ -99,7 +99,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ru/trunk/reference/array/functions/usort.xml
===================================================================
--- phpdoc/ru/trunk/reference/array/functions/usort.xml 2020-12-04 05:12:37 UTC (rev 351863)
+++ phpdoc/ru/trunk/reference/array/functions/usort.xml 2020-12-04 06:44:55 UTC (rev 351864)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 351133 Maintainer: shein Status: ready -->
+<!-- EN-Revision: 351860 Maintainer: shein Status: ready -->
<!-- Reviewed: yes Maintainer: rjhdby -->
<!-- $Revision$ -->
<refentry xml:id="function.usort" xmlns="http://docbook.org/ns/docbook">
@@ -12,7 +12,7 @@
<methodsynopsis>
<type>bool</type><methodname>usort</methodname>
<methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
- <methodparam><type>callable</type><parameter>value_compare_func</parameter></methodparam>
+ <methodparam><type>callable</type><parameter>callback</parameter></methodparam>
</methodsynopsis>
<para>
Эта функция сортирует элементы массива, используя для сравнения
@@ -36,7 +36,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>value_compare_func</parameter></term>
+ <term><parameter>callback</parameter></term>
<listitem>
<para>
&return.callbacksort;
@@ -241,7 +241,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml