1
0
mirror of https://github.com/php/doc-ja.git synced 2026-04-29 11:03:19 +02:00
Commit Graph

395 Commits

Author SHA1 Message Date
Yoshinari Takaoka 84c3b0479e Remove irrelevant info about warning
Passing anything other than an array, is undefined behavior (at least under PHP 7).

https://github.com/php/doc-en/commit/2c0d7af2fd69ecd914abec5cfebae53aca8d491f
2022-10-11 22:17:11 +09:00
Yoshinari Takaoka f40dd9444d Fix spacing in an example
https://github.com/php/doc-en/commit/2762980ae4b6b79f5223a5c9f7ff7911c7e8105d
2022-10-04 19:34:25 +09:00
Yoshinari Takaoka 0e09782d23 Add note about how bad weak mode is for in_array
https://github.com/php/doc-en/commit/8cd7c0d8c574903e149c1da0689a8728cdf909d4
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.

https://github.com/php/doc-en/commit/ce882c196dce81bf6bd4d94af4fa4110ddc49ef4
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.

https://github.com/php/doc-en/commit/d93972fb2d8855d7953d1f09aba48f53c870b135
2022-08-17 01:57:30 +09:00
Yoshinari Takaoka b56e617961 Fix php8 array_udiff_uassoc compatibility
https://github.com/php/doc-en/commit/529b4f98787ecff49d129ffd95b12effdfd7b5f0
2022-07-28 02:06:30 +09:00
Yoshinari Takaoka 9dfd480004 Fix php8 array_udiff_assoc compatibility
https://github.com/php/doc-en/commit/7bbd1aac4da7cc6098d187da0139dd24a10f90f3
2022-07-28 02:05:10 +09:00
Yoshinari Takaoka c80b9dead6 Fix foreach links
https://github.com/php/doc-en/commit/9d29b382865dca44919ae9803ef5dfdcbba185fe
2022-07-20 21:30:05 +09:00
Yoshinari Takaoka 0a92b4fe13 Fix: array_fill() is missing boundary for $count
https://github.com/php/doc-en/commit/eaaf3a0b450ef688c5e80ba7d8cd97a771dc81cc
2022-07-15 01:58:24 +09:00
Yoshinari Takaoka 1db2b41744 Add an array_walk() example using an anonymous function
https://github.com/php/doc-en/commit/d45ff7a3e78243470d1b7e5141d7ded022286d7f
2022-07-02 18:26:14 +09:00
Yoshinari Takaoka 60ebbf1a88 Fix return type explanation for array_recursive
https://github.com/php/doc-en/commit/a51ec6735093d3f71d8b2139967851a7b6df3d65
2022-06-28 06:47:23 +09:00
Yoshinari Takaoka eb70b9f605 Add changelog for array_diff and array_intersect functions
https://github.com/php/doc-en/commit/c84024092aee02b51dd18b909af0f2ccbdd24f98
2022-06-28 06:45:32 +09:00
Yoshinari Takaoka efbd44ebdf Replace each() with foreach in usort and simplexmlelement/xpath
https://github.com/php/doc-en/commit/08e0e7dd68dd0ea36002eb9f839d1b07c701f266
2022-05-27 02:31:37 +09:00
Yoshinari Takaoka 43ae0748de Fix: Changed error behavior in array_chunk in php 8
https://github.com/php/doc-en/commit/214519fdbdd6bfe2942775d3554fa8f440f85404
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
https://github.com/php/doc-en/commit/764e22fefc8a3e46928a3f37bfd0b01789e5ac5f
2022-04-13 05:39:43 +09:00
Yoshinari Takaoka 6a94392dce moved too long title to <para></para> contents.
久々に英語版の落ち穂拾いをした。

https://github.com/php/doc-en/commit/e3ac07c850bad582acd5a3b6c1cf0300af53791d
2022-04-09 17:53:24 +09:00
Yoshinari Takaoka 956de75a61 Usort updates based on comments
https://github.com/php/doc-en/commit/706c7ac6ea13c667efcd610a91d6d86fe1e8b665
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
https://github.com/php/doc-en/commit/431616624d53678d35aee06a846e942c97e89492
2022-03-31 11:56:05 +09:00
Yoshinari Takaoka 4edd041401 Fix inconsistent section orders
https://github.com/php/doc-en/commit/41f8ef55405db33f5b63d2a7856dddcab0fbf135
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 の訳を「要素」としており、修正は不要だった。

https://github.com/php/doc-en/commit/e8c83816e0ca7a4136a5991b2227ddf00fa9adc6
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".

https://github.com/php/doc-en/commit/8b00eb9807eb2aec3263226eb770a0885ebc804e
2022-02-25 21:08:04 +09:00
Yoshinari Takaoka efe24dfffd Improve description of step argument to range()
https://github.com/php/doc-en/commit/9b89d5c26bba2f062bfbaba2e8c4c8cd89646770
2022-02-21 22:01:44 +09:00
Yoshinari Takaoka c6249c9d8b Don't use old style constructor in example
https://github.com/php/doc-en/commit/14b55b8b4ba3a51b38cd3b1c360e21df632ca890
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>.
https://github.com/php/doc-en/commit/eba8e74c7570bfecbbc72f42785f723811521340
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
https://github.com/php/doc-en/commit/31cacb6f262f455c616094cfe6d09bc0d1df2748
2022-01-01 09:03:50 +09:00
Yoshinari Takaoka 321ff313d2 array_flip allegedly can return null
https://github.com/php/doc-en/commit/8a7836bf884a89125227e59be5ece70dca724567
2021-12-08 20:17:09 +09:00
Yoshinari Takaoka 536f628f94 [PHP 8.1] Changelog entry for standard functions
https://github.com/php/doc-en/commit/0a192fcd9cc43c0007de795063b4494974058992
2021-12-03 01:11:20 +09:00
Yoshinari Takaoka 8085ba5c47 On page for key(), add link to array_key_first()
https://github.com/php/doc-en/commit/76c26359d5e1293e4b0ca030dcb7fbec7f5b21cc
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)
```

https://github.com/php/doc-en/commit/6a6f43d1c490a57b452656db285de6d136055ed2
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

https://github.com/php/doc-en/commit/3ef3e56c80f7ae6b6a7291b7eb57dc6250b50801
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
https://github.com/php/doc-en/commit/5ecd5e8e50f0f47dce7341ddc95334af62d9e770
2021-10-03 03:54:35 +09:00
Yoshinari Takaoka 3c8dcdc89d typo
https://github.com/php/doc-en/commit/94af09dfef5a1918d509f75c80051803d5e1e1e5
2021-09-21 00:00:43 +09:00
Yoshinari Takaoka b825f18307 Array Natural sort functions always return true
https://github.com/php/doc-en/commit/8b54a4bf8cfd20acbd15519f13385b0af205df22
2021-09-06 00:11:36 +09:00
Yoshinari Takaoka e8d62cf095 fixed useless column
直前のコミットで余計なカラムを埋め込んでしまいました。sorry.
2021-08-20 10:19:24 +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

https://github.com/php/doc-en/commit/d1df62fe77b6cb0676d064e8e63ee2c3304d4260
2021-08-20 10:10:15 +09:00
Yoshinari Takaoka 95ff38bb1a Generate ext/spl methodsynopses based on stubs
https://github.com/php/doc-en/commit/60809ebcf7d0c261b2f00e093e4fab70326ffc7b
2021-08-12 21:17:18 +09:00
Yoshinari Takaoka 4f25fd25e5 Remove XSS and broken example from list() page
https://github.com/php/doc-en/commit/43ac336818cb3a18011d9b6ba91514f3332eb46d
2021-08-06 09:49:48 +09:00
Yoshinari Takaoka a949b98e1a Fold in comments to array_map()
https://github.com/php/doc-en/commit/d042804100d34f5389fe122b0e1cd41087fd94ba
2021-07-31 21:54:05 +09:00
Yoshinari Takaoka 6fc4b117de Add additional reference to array_filter.
https://github.com/php/doc-en/commit/b8aafb570ca5fe19e86a14a68199818a2250b053
2021-07-30 09:38:52 +09:00
Yoshinari Takaoka 7847716558 Updated EN-Revison only.
前のコミットの更新し忘れ。
2021-07-26 23:38:55 +09:00
Yoshinari Takaoka fa05b5ed27 Sorting functions is stable, as of PHP 8.0.0.
https://github.com/php/doc-en/commit/decde82b16694e0eaae8a84faf4f3f94b8109b3b
2021-07-26 23:37:24 +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 0d68801773 Remove split() and ereg()
ereg系の関数は、PHP 5.3.0 で非推奨になり、7.0.0 で削除されている。
ドキュメントも完全に削除され、なかったことにされているので注意。

https://github.com/php/doc-en/commit/8f5f6a52c0d25a42a069c6c1cff4effb68fb379c
2021-06-24 08:45:40 +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