File tree Expand file tree Collapse file tree 5 files changed +27
-35
lines changed
reference/array/functions Expand file tree Collapse file tree 5 files changed +27
-35
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <!-- splitted from ./ja/functions/array.xml, last change in rev 1.1 -->
3
- <!-- sync: 1.2 -->
2
+ <!-- $Revision: 1.3 $ -->
3
+ <!-- sync: 1.5 -->
4
4
<refentry id =" function.reset" >
5
5
<refnamediv >
6
6
<refname >reset</refname >
16
16
</methodsynopsis >
17
17
<para >
18
18
<function >reset</function >は、<parameter >array</parameter >の
19
- 内部ポインタの先頭の要素に戻します。
20
- </para >
21
- <para >
22
- <function >reset</function >は、配列の最初の要素の値を返します。
19
+ 内部ポインタの先頭の要素に戻し、配列の最初の要素の値を返します。
23
20
</para >
24
21
<para >
25
22
<function >current</function >, <function >each</function >,
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <!-- splitted from ./ja/functions/array.xml, last change in rev 1.1 -->
3
- <!-- sync: 1.2 -->
2
+ <!-- $Revision: 1.3 $ -->
3
+ <!-- sync: 1.6 -->
4
4
<refentry id =" function.rsort" >
5
5
<refnamediv >
6
6
<refname >rsort</refname >
11
11
<methodsynopsis >
12
12
<type >void</type ><methodname >rsort</methodname >
13
13
<methodparam ><type >array</type ><parameter >array</parameter ></methodparam >
14
- <methodparam ><type >int</type ><parameter >
15
- <replaceable ><optional >sort_flags</optional ></replaceable >
16
- </parameter ></methodparam >
14
+ <methodparam choice =" opt" ><type >int</type ><parameter >sort_flags</parameter ></methodparam >
17
15
</methodsynopsis >
18
16
<para >
19
17
この関数は、配列を逆順に(高位から低位に)ソートします。
20
18
<example >
21
19
<title ><function >rsort</function >の例</title >
22
20
<programlisting role =" php" >
23
21
<![CDATA[
22
+ <?php
24
23
$fruits = array ("lemon", "orange", "banana", "apple");
25
24
rsort ($fruits);
26
25
reset ($fruits);
27
26
while (list ($key, $val) = each ($fruits)) {
28
27
echo "$key = $val\n";
29
28
}
29
+ ?>
30
30
]]>
31
31
</programlisting >
32
32
</example >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <!-- splitted from ./ja/functions/array.xml, last change in rev 1.4 -->
3
- <!-- sync: 1.2 -->
2
+ <!-- $Revision: 1.3 $ -->
3
+ <!-- sync: 1.6 -->
4
4
<refentry id =" function.shuffle" >
5
5
<refnamediv >
6
6
<refname >shuffle</refname >
20
20
<title ><function >shuffle</function >の例</title >
21
21
<programlisting role =" php" >
22
22
<![CDATA[
23
+ <?php
23
24
$numbers = range (1,20);
24
25
srand ((float)microtime()*1000000);
25
26
shuffle ($numbers);
26
27
while (list (, $number) = each ($numbers)) {
27
28
echo "$number ";
28
29
}
30
+ ?>
29
31
]]>
30
32
</programlisting >
31
33
</example >
32
34
</para >
35
+
36
+ ¬e.randomseed;
37
+
33
38
<para >
34
39
<function >arsort</function >,<function >asort</function >,
35
40
<function >ksort</function >,<function >rsort</function >,
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <!-- splitted from ./ja/functions/array.xml, last change in rev 1.1 -->
3
- <!-- sync: 1.2 -->
2
+ <!-- $Revision: 1.3 $ -->
3
+ <!-- sync: 1.5 -->
4
4
<refentry id =" function.sizeof" >
5
5
<refnamediv >
6
6
<refname >sizeof</refname >
7
- <refpurpose >変数の要素数を取得する </refpurpose >
7
+ <refpurpose >< function >count</ function >へのエイリアス </refpurpose >
8
8
</refnamediv >
9
9
<refsect1 >
10
10
<title >説明</title >
11
- <methodsynopsis >
12
- <type >int</type ><methodname >sizeof</methodname >
13
- <methodparam ><type >mixed</type ><parameter >var</parameter ></methodparam >
14
- </methodsynopsis >
15
11
<para >
16
- <function >sizeof</function >は、<function >count</function >へのエイ
17
- リアスです。
18
- </para >
19
- <para >
20
- <function >count</function >も参照下さい。
12
+ この関数は<function >count</function >へのエイリアスです。
21
13
</para >
22
14
</refsect1 >
23
15
</refentry >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <!-- splitted from ./ja/functions/array.xml, last change in rev 1.1 -->
3
- <!-- sync: 1.2 -->
2
+ <!-- $Revision: 1.3 $ -->
3
+ <!-- sync: 1.6 -->
4
4
<refentry id =" function.sort" >
5
5
<refnamediv >
6
6
<refname >sort</refname >
11
11
<methodsynopsis >
12
12
<type >void</type ><methodname >sort</methodname >
13
13
<methodparam ><type >array</type ><parameter >array</parameter ></methodparam >
14
- <methodparam ><type >int</type ><parameter >
15
- <replaceable ><optional >sort_flags</optional ></replaceable >
16
- </parameter ></methodparam >
14
+ <methodparam choice =" opt" ><type >int</type ><parameter >sort_flags</parameter ></methodparam >
17
15
</methodsynopsis >
18
16
<para >
19
17
この関数は配列をソートします。この関数が正常に終了すると、
@@ -73,6 +71,11 @@ fruits[3] = orange
73
71
</listitem >
74
72
</itemizedlist >
75
73
</para >
74
+ <note >
75
+ <para >
76
+ 2番目の引数はPHP4で追加されました。
77
+ </para >
78
+ </note >
76
79
<para >
77
80
<function >arsort</function >,
78
81
<function >asort</function >, <function >ksort</function >,
@@ -81,11 +84,6 @@ fruits[3] = orange
81
84
<function >array_multisort</function >, <function >uksort</function >
82
85
も参照下さい。
83
86
</para >
84
- <note >
85
- <para >
86
- 2番目のパラメータはPHP 4で追加されました。
87
- </para >
88
- </note >
89
87
</refsect1 >
90
88
</refentry >
91
89
You can’t perform that action at this time.
0 commit comments