Skip to content

Commit ca9c9e2

Browse files
author
Yu Watanabe
committed
sync to en tree.
git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@135588 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent 09f4400 commit ca9c9e2

File tree

5 files changed

+27
-35
lines changed

5 files changed

+27
-35
lines changed

reference/array/functions/reset.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?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 -->
44
<refentry id="function.reset">
55
<refnamediv>
66
<refname>reset</refname>
@@ -16,10 +16,7 @@
1616
</methodsynopsis>
1717
<para>
1818
<function>reset</function>は、<parameter>array</parameter>の
19-
内部ポインタの先頭の要素に戻します。
20-
</para>
21-
<para>
22-
<function>reset</function>は、配列の最初の要素の値を返します。
19+
内部ポインタの先頭の要素に戻し、配列の最初の要素の値を返します。
2320
</para>
2421
<para>
2522
<function>current</function>, <function>each</function>,

reference/array/functions/rsort.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?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 -->
44
<refentry id="function.rsort">
55
<refnamediv>
66
<refname>rsort</refname>
@@ -11,22 +11,22 @@
1111
<methodsynopsis>
1212
<type>void</type><methodname>rsort</methodname>
1313
<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>
1715
</methodsynopsis>
1816
<para>
1917
この関数は、配列を逆順に(高位から低位に)ソートします。
2018
<example>
2119
<title><function>rsort</function>の例</title>
2220
<programlisting role="php">
2321
<![CDATA[
22+
<?php
2423
$fruits = array ("lemon", "orange", "banana", "apple");
2524
rsort ($fruits);
2625
reset ($fruits);
2726
while (list ($key, $val) = each ($fruits)) {
2827
echo "$key = $val\n";
2928
}
29+
?>
3030
]]>
3131
</programlisting>
3232
</example>

reference/array/functions/shuffle.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?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 -->
44
<refentry id="function.shuffle">
55
<refnamediv>
66
<refname>shuffle</refname>
@@ -20,16 +20,21 @@
2020
<title><function>shuffle</function>の例</title>
2121
<programlisting role="php">
2222
<![CDATA[
23+
<?php
2324
$numbers = range (1,20);
2425
srand ((float)microtime()*1000000);
2526
shuffle ($numbers);
2627
while (list (, $number) = each ($numbers)) {
2728
echo "$number ";
2829
}
30+
?>
2931
]]>
3032
</programlisting>
3133
</example>
3234
</para>
35+
36+
&note.randomseed;
37+
3338
<para>
3439
<function>arsort</function>,<function>asort</function>,
3540
<function>ksort</function>,<function>rsort</function>,

reference/array/functions/sizeof.xml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
11
<?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 -->
44
<refentry id="function.sizeof">
55
<refnamediv>
66
<refname>sizeof</refname>
7-
<refpurpose>変数の要素数を取得する</refpurpose>
7+
<refpurpose><function>count</function>へのエイリアス</refpurpose>
88
</refnamediv>
99
<refsect1>
1010
<title>説明</title>
11-
<methodsynopsis>
12-
<type>int</type><methodname>sizeof</methodname>
13-
<methodparam><type>mixed</type><parameter>var</parameter></methodparam>
14-
</methodsynopsis>
1511
<para>
16-
<function>sizeof</function>は、<function>count</function>へのエイ
17-
リアスです。
18-
</para>
19-
<para>
20-
<function>count</function>も参照下さい。
12+
この関数は<function>count</function>へのエイリアスです。
2113
</para>
2214
</refsect1>
2315
</refentry>

reference/array/functions/sort.xml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?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 -->
44
<refentry id="function.sort">
55
<refnamediv>
66
<refname>sort</refname>
@@ -11,9 +11,7 @@
1111
<methodsynopsis>
1212
<type>void</type><methodname>sort</methodname>
1313
<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>
1715
</methodsynopsis>
1816
<para>
1917
この関数は配列をソートします。この関数が正常に終了すると、
@@ -73,6 +71,11 @@ fruits[3] = orange
7371
</listitem>
7472
</itemizedlist>
7573
</para>
74+
<note>
75+
<para>
76+
2番目の引数はPHP4で追加されました。
77+
</para>
78+
</note>
7679
<para>
7780
<function>arsort</function>,
7881
<function>asort</function>, <function>ksort</function>,
@@ -81,11 +84,6 @@ fruits[3] = orange
8184
<function>array_multisort</function>, <function>uksort</function>
8285
も参照下さい。
8386
</para>
84-
<note>
85-
<para>
86-
2番目のパラメータはPHP 4で追加されました。
87-
</para>
88-
</note>
8987
</refsect1>
9088
</refentry>
9189

0 commit comments

Comments
 (0)