File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
reference/array/functions Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<!-- $Revision$ -->
3
- <!-- EN-Revision: 821b199e5c6f7dad1366b811c079df33db863c34 Maintainer: takagi Status: ready -->
3
+ <!-- EN-Revision: fea06f18ecf93275638c995be73440b85baee545 Maintainer: takagi Status: ready -->
4
4
<!-- CREDITS: hirokawa,shimooka,mumumu -->
5
5
<refentry xml : id =" function.array-filter" xmlns =" http://docbook.org/ns/docbook" >
6
6
<refnamediv >
24
24
の全ての要素を含む配列を返します。
25
25
<parameter >callback</parameter > 関数が &true; を返した場合、
26
26
<parameter >array</parameter > の現在の値が結果の配列に入ります。
27
+ </para >
28
+ <para >
27
29
配列のキーは保存されます。
30
+ <parameter >array</parameter > にインデックスが振られていた場合、結果が異なる場合があります。
31
+ 結果の &array; のインデックスは、 <function >array_values</function > 関数を使って振り直されます。
28
32
</para >
29
33
</refsect1 >
30
34
50
54
</para >
51
55
<para >
52
56
コールバック関数が与えられなかった場合、
53
- <parameter >array</parameter > のエントリの中で &false; と等しいもの
54
- (<link linkend =" language.types.boolean.casting" >boolean
55
- への変換</link > を参照ください) がすべて削除されます。
57
+ <parameter >array</parameter > のエントリの中で空のものはすべて削除されます。
58
+ この場合の「空」の定義については、<function >empty</function > 関数を参照して下さい。
56
59
</para >
57
60
</listitem >
58
61
</varlistentry >
You can’t perform that action at this time.
0 commit comments