1
0
mirror of https://github.com/php/doc-ja.git synced 2026-03-27 16:42:17 +01:00
Commit Graph

380 Commits

Author SHA1 Message Date
Yoshinari Takaoka
fafac409f6 array_keys(): fix incorrect parameter name
5414f72979
2022-12-08 19:28:58 +09:00
Yoshinari Takaoka
550bf90839 random: Improve the non-CSPRNG warning
fc1e94a9c2
2022-11-17 20:34:10 +09:00
Yoshinari Takaoka
d6e901710a random: Clean up cross-references for randomness related functions
52c495140b
2022-11-15 23:16:42 +09:00
Yoshinari Takaoka
7068e5abb5 array_count_values() requires all array values to be int|string
9009f8104b
2022-10-20 02:25:44 +09:00
Yoshinari Takaoka
84c3b0479e Remove irrelevant info about warning
Passing anything other than an array, is undefined behavior (at least under PHP 7).

2c0d7af2fd
2022-10-11 22:17:11 +09:00
Yoshinari Takaoka
f40dd9444d Fix spacing in an example
2762980ae4
2022-10-04 19:34:25 +09:00
Yoshinari Takaoka
0e09782d23 Add note about how bad weak mode is for in_array
8cd7c0d8c5
2022-08-26 17:42:00 +09:00
Yoshinari Takaoka
0177d3d2fa Document changed array_fill() behavior as of PHP 8.0.0
The result in php8 is different from the result in php7 for
negative keys.

ce882c196d
2022-08-26 17:28:09 +09:00
Yoshinari Takaoka
88ac6204ab Fix: array_pop() throws TypeError in PHP8
There is no need to describe the behavior on passing an unsupported
type at all, since that is already documented generally for internal
functions.

d93972fb2d
2022-08-17 01:57:30 +09:00
Yoshinari Takaoka
b56e617961 Fix php8 array_udiff_uassoc compatibility
529b4f9878
2022-07-28 02:06:30 +09:00
Yoshinari Takaoka
9dfd480004 Fix php8 array_udiff_assoc compatibility
7bbd1aac4d
2022-07-28 02:05:10 +09:00
Yoshinari Takaoka
c80b9dead6 Fix foreach links
9d29b38286
2022-07-20 21:30:05 +09:00
Yoshinari Takaoka
0a92b4fe13 Fix: array_fill() is missing boundary for $count
eaaf3a0b45
2022-07-15 01:58:24 +09:00
Yoshinari Takaoka
1db2b41744 Add an array_walk() example using an anonymous function
d45ff7a3e7
2022-07-02 18:26:14 +09:00
Yoshinari Takaoka
60ebbf1a88 Fix return type explanation for array_recursive
a51ec67350
2022-06-28 06:47:23 +09:00
Yoshinari Takaoka
eb70b9f605 Add changelog for array_diff and array_intersect functions
c84024092a
2022-06-28 06:45:32 +09:00
Yoshinari Takaoka
efbd44ebdf Replace each() with foreach in usort and simplexmlelement/xpath
08e0e7dd68
2022-05-27 02:31:37 +09:00
Yoshinari Takaoka
43ae0748de Fix: Changed error behavior in array_chunk in php 8
214519fdbd
2022-05-19 01:28:13 +09:00
Yoshinari Takaoka
37ebb6c399 statically call の日本語訳 を改善 (#49) 2022-05-14 16:10:39 +09:00
Yoshinari Takaoka
49d74a3e51 Update array_combine return values section
764e22fefc
2022-04-13 05:39:43 +09:00
Yoshinari Takaoka
6a94392dce moved too long title to <para></para> contents.
久々に英語版の落ち穂拾いをした。

e3ac07c850
2022-04-09 17:53:24 +09:00
Yoshinari Takaoka
956de75a61 Usort updates based on comments
706c7ac6ea
2022-04-09 17:42:47 +09:00
Yoshinari Takaoka
3d1e38a88c Fix: 表記揺れ: 言語構造 / 言語構成要素
Closes: #42
2022-04-08 23:33:58 +09:00
Yoshinari Takaoka
dacf9360ed Fix array_combine throws ValueError since PHP 8
431616624d
2022-03-31 11:56:05 +09:00
Yoshinari Takaoka
4edd041401 Fix inconsistent section orders
41f8ef5540
2022-03-14 12:55:19 +09:00
Yoshinari Takaoka
fefdb41622 Updated EN-Revison only / array_map() maps values, not indexes
Cf. <https://news-web.php.net/php.doc/969388082>.

日本語版は、index の訳を「要素」としており、修正は不要だった。

e8c83816e0
2022-03-03 21:42:47 +09:00
Yoshinari Takaoka
00563c985f disambiguate semantics of search_value
The definition of `search_value` in "Parameters" is a bit ambiguous. "these values" _could_ be interpreted to mean that if an array is passed as the `$search_value`, keys of elements of `$search_value` that match _any_ of those `$array` elements will be returned.
Note, the "Description" section does not have this ambiguity as it states "that value" instead of "those values".

8b00eb9807
2022-02-25 21:08:04 +09:00
Yoshinari Takaoka
efe24dfffd Improve description of step argument to range()
9b89d5c26b
2022-02-21 22:01:44 +09:00
Yoshinari Takaoka
c6249c9d8b Don't use old style constructor in example
14b55b8b4b
2022-02-16 19:31:46 +09:00
keshipi
4945f838c2 Update array-filter.xml (#31)
explanation may be misleading
2022-01-06 17:45:39 +09:00
Yoshinari Takaoka
ca8a835493 The array_walk() $callback may require more than 2 parameters
Cf. <https://3v4l.org/jdjEG>.
eba8e74c75
2022-01-01 09:12:57 +09:00
Yoshinari Takaoka
983520cdf0 array_map no longer passes by reference
https://bugs.php.net/bug.php?id=80699
31cacb6f26
2022-01-01 09:03:50 +09:00
Yoshinari Takaoka
321ff313d2 array_flip allegedly can return null
8a7836bf88
2021-12-08 20:17:09 +09:00
Yoshinari Takaoka
536f628f94 [PHP 8.1] Changelog entry for standard functions
0a192fcd9c
2021-12-03 01:11:20 +09:00
Yoshinari Takaoka
8085ba5c47 On page for key(), add link to array_key_first()
76c26359d5
2021-11-23 18:50:54 +09:00
Yoshinari Takaoka
85ea803500 Documentation of index reset effect of some array functions
要は、こういうことだ。

```
<?php

$a = [1, 2, 3];

next($a);
next($a);
var_dump(current($a)); // int(3)
asort($a);
var_dump(current($a)); // int(1)
```

6a6f43d1c4
2021-11-09 23:09:32 +09:00
Yoshinari Takaoka
d67e39ad7a Rewrite count() page
* Rewrite count() page
* Change methodname to interface name and fix example output
* Add example with Countable object
* Delete redundant code comments

3ef3e56c80
2021-10-12 03:14:38 +09:00
Yoshinari Takaoka
0555fa191f s/返り値/戻り値/g 2021-10-09 02:40:05 +09:00
Yoshinari Takaoka
1f7795369a [PHP 8.1] Add array_is_list description
5ecd5e8e50
2021-10-03 03:54:35 +09:00
Yoshinari Takaoka
3c8dcdc89d typo
94af09dfef
2021-09-21 00:00:43 +09:00
Yoshinari Takaoka
b825f18307 Array Natural sort functions always return true
8b54a4bf8c
2021-09-06 00:11:36 +09:00
Yoshinari Takaoka
663a376446 Update array sorting docs
These always return true, even in PHP 7
Clarify sorting is unstable prior to PHP 8.0
Normalize the docs between the functions

d1df62fe77
2021-08-20 10:10:15 +09:00
Yoshinari Takaoka
95ff38bb1a Generate ext/spl methodsynopses based on stubs
60809ebcf7
2021-08-12 21:17:18 +09:00
Yoshinari Takaoka
4f25fd25e5 Remove XSS and broken example from list() page
43ac336818
2021-08-06 09:49:48 +09:00
Yoshinari Takaoka
a949b98e1a Fold in comments to array_map()
d042804100
2021-07-31 21:54:05 +09:00
Yoshinari Takaoka
6fc4b117de Add additional reference to array_filter.
b8aafb570c
2021-07-30 09:38:52 +09:00
Yoshinari Takaoka
7b09b3fba5 Fix parameter names for array functions
* Fix parameter names in array_walk docs
* Fix parameter names in documentation for array_walk_recursive
2021-07-10 00:09:49 +09:00
Yoshinari Takaoka
db8ca7d3b3 update EN-Revision only
カンマをピリオドに修正するのみで、日本語版には影響しないものだった
2021-07-01 02:50:33 +09:00
Yoshinari Takaoka
3ac68546f8 s/逆順/降順/ 2021-06-13 08:34:29 +09:00
Yoshinari Takaoka
96f0fb75ed update refpurpose for sort functions as well 2021-06-12 10:32:13 +09:00