Commit graph

665 commits

Author SHA1 Message Date
vlakoff
76c26359d5
On page for key(), add link to array_key_first()
Closes GH-1129.
2021-11-23 00:32:07 +01:00
Salomon88
6a6f43d1c4
Documentation of index reset effect of some array functions - issue #876 (#1077)
Co-authored-by: Alexey Kryuchkov <alexey.kryuchkov@jetbrains.com>

Closes GH-1077.
2021-11-09 13:01:19 +01:00
Kamil Tekiela
3ef3e56c80
Rewrite count() page (#948)
* Rewrite count() page

* Change methodname to interface name and fix example output

* Add example with Countable object

* Delete redundant code comments
2021-10-11 13:31:31 +01:00
Sergey Panteleev
5ecd5e8e50
[PHP 8.1] Add array_is_list description (#986)
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
2021-10-02 19:52:56 +03:00
Martin Samesch
94af09dfef
typo 2021-09-20 11:23:20 +02:00
George Peter Banyard
8b54a4bf8c
Array Natural sort functions always return true 2021-09-05 14:48:08 +01:00
George Peter Banyard
d1df62fe77
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

Closes GH-686
2021-08-19 15:46:00 +01:00
Máté Kocsis
60809ebcf7
Generate ext/spl methodsynopses based on stubs (#624) 2021-08-11 23:44:41 +02:00
Kamil Tekiela
43ac336818
Remove XSS and broken example from list() page (#797) 2021-08-05 21:06:40 +01:00
Larry Garfield
d042804100
Fold in comments to array_map()
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>

Closes GH-828.
2021-07-30 18:18:35 +02:00
Larry Garfield
b8aafb570c Add additional reference to array_filter. 2021-07-29 11:32:30 -04:00
Yoshinari Takaoka
decde82b16
Sorting functions is stable, as of PHP 8.0.0. (#825)
* Sorting functions is stable, as of PHP 8.0.0.

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-07-26 23:28:56 +09:00
Karsten Lehmann
d42b32e96b
Fix parameter names for array functions (#616)
* Fix parameter names in array_walk docs

* Fix parameter names in documentation for array_walk_recursive
2021-07-07 21:53:13 +01:00
zors1
f2af34e50c
Replace a comma with a period in sort.xml
Closes GH-746.
2021-06-30 14:54:14 +02:00
Kamil Tekiela
d335ba69a1
Remove split() and ereg()
Closes GH-716.
2021-06-23 20:20:58 +02:00
jhdxr
e559d0d44d update refpurpose for sort functions as well 2021-06-12 02:37:45 +08:00
蝦米
9ec0244d48
Clarify the order of sort functions in their description
Closes GH-681.
2021-06-11 18:51:25 +02:00
George Peter Banyard
cbac1ecf71 Fix lone section order issues in various extensions
Part of #658
2021-06-06 18:03:03 +01:00
Sergey Panteleev
8cdc6621f9
Remove PHP 5, 7 references (#563)
- array functions
- datetime functions
- mbstring functions
- strings functions
- var functions
- xml functions
- json functions
2021-05-16 22:07:40 +03:00
thinkverse
8a7c2e0368 Fix changelog being at the wrong section 2021-04-29 19:28:16 +01:00
Kim Hallberg
a7663ad05e
Fix #80999: count TypeError not documented
* Add TypeError to changelog
* Update example for count to show TypeError
* Split example outputs into separate PHP versions
* Split examples into good and bad examples

Closes GH-556.
2021-04-29 15:18:50 +02:00
Sergey Panteleev
f9c4a68ef4
Removed references to PHP 5, PHP 7.0 (#548) 2021-04-26 11:46:55 +03:00
Sergey Panteleev
a0ae28d3bc
Removed references to PHP 5, PHP 7.0 (#545) 2021-04-24 20:01:17 +03:00
Sergey Panteleev
5fabd07880
Removed Changelog entries for PHP 5, PHP 7.0 (#543) 2021-04-22 17:52:58 +03:00
Christoph M. Becker
e49940b757
Fix #73938: PHP7 foreach internal array pointer 2021-03-31 16:09:52 +02:00
Riikka Kalliomäki
67268fc268 Update index_key handling in array_column for php8
Closes GH-460.
2021-03-08 18:32:22 +01:00
Christoph M. Becker
a6655e3f95 Fix #75787: Array iterator functions misleading 2021-02-12 13:16:42 +01:00
Christoph M. Becker
627fb8f867 Fix #77323: Since 7.1 $var[] = 'entry'; throws Fatal. This is unclear in the docs. 2021-01-25 13:36:54 +01:00
Goran Grbic
755faca201 Added version PHP 8 into array functions' version.
Also slight improvements to related examples.

Closes GH-337.
2021-01-17 12:01:07 +01:00
George Peter Banyard
4a7ddddc27
Remove some mentions of register globals 2021-01-16 11:30:04 +00:00
Alexandru Pătrănescu
fd8eb0ea17 fix return type of array_change_key_case error
fix return type of `array_change_key_case` in case of parameter wrong type that changed from false to null starting PHP 5.3 ~11.5 years ago

Closes GH-314.
2021-01-08 00:52:58 +01:00
Christoph Michael Becker
2550f62c6a Fix #80543: ArrayObject::asort() and ::ksort() expect an optional int
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352168 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-22 16:28:26 +00:00
Christoph Michael Becker
19af072c3e Fix #80482: Undocumented behavior of array_walk with objects
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351878 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-04 17:20:44 +00:00
Christoph Michael Becker
cd943f94a0 Generate array methodsynopses based on stubs
Partial merge of <https://github.com/php/doc-en/pull/266>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351860 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-04 00:35:15 +00:00
Christoph Michael Becker
e41806c30b Revert revision(s) 351724 from phpdoc/en/trunk:
Document false and null return types

Cf. <https://news-web.php.net/php.doc.cvs/17645>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351730 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 18:05:44 +00:00
Christoph Michael Becker
4754397753 Revert revision 351727 from phpdoc/en/trunk:
Document false and null return types

Cf. <https://news-web.php.net/php.doc.cvs/17645>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351729 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 17:58:32 +00:00
Jakub Vrana
69bd53265b Document false and null return types
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351727 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 15:12:46 +00:00
Jakub Vrana
c80da7c04a Document false and null return types
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351724 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 12:54:59 +00:00
Christoph Michael Becker
86e6094e86 Use canonical type names
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351133 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:39:04 +00:00
Christoph Michael Becker
9e0f03ac35 Proper variadics instead of pseudo variadics
We markup variadic parameters with the `rep=repeat` standard DocBook
attribute of `<methodparam>`, and use proper variable names instead of
using the old pseudo variable name `...`.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351129 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 11:17:26 +00:00
Christoph Michael Becker
eb0bd932eb Replace "number" type with built-in types
There is really no need for a pseudo type here; we can either use the
`int|float` union, or spell out the abbreviation, instead.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351123 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 09:17:09 +00:00
Christoph Michael Becker
282140eb7d Note that the order of returned keys is deterministic
Patch contributed by Larry Garfield <larry@garfieldtech.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350939 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-19 07:35:23 +00:00
Christoph Michael Becker
80872147aa Get rid of "callback" types
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350788 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-06 09:11:05 +00:00
Christoph Michael Becker
3e15d2894f Remove more changelog entries, mostly from PHP 5.4 era
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350656 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 14:15:17 +00:00
Christoph Michael Becker
7f569e1f17 Remove more changelog entries, mostly from PHP 5.3 era
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350655 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 14:08:59 +00:00
Christoph Michael Becker
9af43469f4 Remove more changelog entries, mostly from PHP 5.2 era
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350654 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 13:52:31 +00:00
Christoph Michael Becker
53bdffa6b9 Removed some of the PHP5 changelogs
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350645 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 12:32:19 +00:00
Christoph Michael Becker
fcb6e76fc6 Minor improvements to array_map() docs
Patch contributed by Larry Garfield.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350490 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-02 16:31:49 +00:00
Christoph Michael Becker
fea06f18ec Note that the result array is non-sequential.
Patch contributed by Larry Garfield.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350489 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-02 16:28:21 +00:00
Christoph Michael Becker
b899001091 Convert a note into a more robust example showing how type juggling works.
Patch contributed by Larry Garfield.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350488 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-02 16:23:44 +00:00