Commit graph

418 commits

Author SHA1 Message Date
Justin Martin
a92128a89f Refactored additional array functions using the callback function snippet and prototype.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323060 c90b9560-bf6c-de11-be94-00142212c4b1
2012-02-04 21:01:14 +00:00
Justin Martin
8519fee981 Cleaning up and refactoring the callback descriptions for functions which use a user-defined comparison function.
Adds an entity to global.ent defining a generic callback prototype, which is common to several sorting functions.
Adds a language snippet describing the comparison function return value, which is common to several sorting functions.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323049 c90b9560-bf6c-de11-be94-00142212c4b1
2012-02-03 21:07:23 +00:00
Justin Martin
c3b7ce511c Added callback prototype. Closes bug #60956.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323048 c90b9560-bf6c-de11-be94-00142212c4b1
2012-02-03 20:58:24 +00:00
Nikita Popov
123babdf91 Fix Doc Bug #51112: list() misbehaviour
Add a warning saying that modification of the array being destructured during list() execution will result in undefined behavior.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@320698 c90b9560-bf6c-de11-be94-00142212c4b1
2011-12-08 21:25:44 +00:00
Jakub Vrana
965f8ae1ca Link array_slice() and array_chunk()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@320302 c90b9560-bf6c-de11-be94-00142212c4b1
2011-12-03 07:14:26 +00:00
Jakub Vrana
a331658633 Product of empty array
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@320293 c90b9560-bf6c-de11-be94-00142212c4b1
2011-12-02 23:55:51 +00:00
Gordon Oheim
70c08c45a4 fixes Bug #60427: array_reverse docs are slightly misleading
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@320282 c90b9560-bf6c-de11-be94-00142212c4b1
2011-12-02 13:00:40 +00:00
Dave Barr
9ca0ef14e2 - Add list() to See Also.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@320268 c90b9560-bf6c-de11-be94-00142212c4b1
2011-12-02 05:51:28 +00:00
Joey Smith
bb0f425fc7 Remove word 'system' from 'system locale', which can confuse readers.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@320067 c90b9560-bf6c-de11-be94-00142212c4b1
2011-11-28 03:48:36 +00:00
Richard Quadling
0158300574 A short array alters length description.
Fixes bug #60320

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@319411 c90b9560-bf6c-de11-be94-00142212c4b1
2011-11-17 16:29:13 +00:00
Peter Cowburn
680b72c9b8 typofix (patch by anon 11351)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@318104 c90b9560-bf6c-de11-be94-00142212c4b1
2011-10-14 11:39:59 +00:00
Adam Harvey
b66067051c Fix doc bug #55343 (documentation needs to be more clear) by making the
array_intersect_assoc() example more explicit.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@314091 c90b9560-bf6c-de11-be94-00142212c4b1
2011-08-02 09:33:49 +00:00
Jakub Vrana
cd7c33a6ce Whitespace
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@314089 c90b9560-bf6c-de11-be94-00142212c4b1
2011-08-02 09:10:35 +00:00
Jakub Vrana
6deaf016e7 See also
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@313672 c90b9560-bf6c-de11-be94-00142212c4b1
2011-07-25 14:38:26 +00:00
Jakub Vrana
7ecf6f14fd Markup
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@313671 c90b9560-bf6c-de11-be94-00142212c4b1
2011-07-25 14:37:04 +00:00
Jakub Vrana
ac04b2ea21 Extension purpose is not needed anymore
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@313269 c90b9560-bf6c-de11-be94-00142212c4b1
2011-07-15 15:46:15 +00:00
Jakub Vrana
c05c2912b1 Doesn't return false for empty arrays anymore
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@312709 c90b9560-bf6c-de11-be94-00142212c4b1
2011-06-30 16:53:51 +00:00
Jakub Vrana
9190379067 Clarify count() with objects
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@312153 c90b9560-bf6c-de11-be94-00142212c4b1
2011-06-14 14:40:03 +00:00
Jakub Vrana
61e122fd90 Move seealso to list
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@312075 c90b9560-bf6c-de11-be94-00142212c4b1
2011-06-12 01:09:01 +00:00
Peter Cowburn
fab3854a2e clarify range() parameter purposes (doc #54696)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@311397 c90b9560-bf6c-de11-be94-00142212c4b1
2011-05-24 20:14:36 +00:00
Peter Cowburn
eae252d99c tidy prototype for array_replace_recursive() (doc #54774)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@311247 c90b9560-bf6c-de11-be94-00142212c4b1
2011-05-19 12:17:49 +00:00
Peter Cowburn
078cf6c9e9 tidy array_replace() parameters (doc #54773)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@311163 c90b9560-bf6c-de11-be94-00142212c4b1
2011-05-17 22:17:16 +00:00
Peter Cowburn
0266c9027f tidy array_merge() prototype (doc #54772)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@311162 c90b9560-bf6c-de11-be94-00142212c4b1
2011-05-17 22:10:53 +00:00
Peter Cowburn
1bdcb1b9fd clarify parameter descriptions for array_fill() (doc #54628)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@310656 c90b9560-bf6c-de11-be94-00142212c4b1
2011-04-30 11:46:19 +00:00
David Tajchreber
2fc10c7557 Fixing mistake made with last commit (#54574)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@310394 c90b9560-bf6c-de11-be94-00142212c4b1
2011-04-20 14:00:06 +00:00
David Tajchreber
a59197ab9f Fixed #54574 - clarified that in_array uses loose comparison by default
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@310392 c90b9560-bf6c-de11-be94-00142212c4b1
2011-04-20 13:58:29 +00:00
Karoly Negyesi
89a73e348c reverting 307359. current does take the array by reference. but it also allows a constant. oh well.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@310277 c90b9560-bf6c-de11-be94-00142212c4b1
2011-04-17 09:37:40 +00:00
Hannes Magnusson
507757922d Be consistent with the reflection info
plus, when you pass EXTR_REFS the array really is passed by ref (chx)


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@310276 c90b9560-bf6c-de11-be94-00142212c4b1
2011-04-17 09:32:05 +00:00
Peter Cowburn
9a4ce246ae added missing initializer for strict param in array_search()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@309257 c90b9560-bf6c-de11-be94-00142212c4b1
2011-03-15 15:52:33 +00:00
Karoly Negyesi
0419c2fe75 tried to clarify what popen does and added a note to array walk.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@308188 c90b9560-bf6c-de11-be94-00142212c4b1
2011-02-10 12:53:33 +00:00
Shein Alexey
6adee2fb1d Removed 'recursively' wording from array-merge description.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@307837 c90b9560-bf6c-de11-be94-00142212c4b1
2011-01-28 22:13:42 +00:00
Shein Alexey
568b98d647 Added some parameter tags into the array-pad description.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@307835 c90b9560-bf6c-de11-be94-00142212c4b1
2011-01-28 22:09:55 +00:00
Yannick Torres
a249d94435 Add constant tag
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@307565 c90b9560-bf6c-de11-be94-00142212c4b1
2011-01-18 22:38:28 +00:00
Karoly Negyesi
5c33d2291a current does not take the array by reference
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@307359 c90b9560-bf6c-de11-be94-00142212c4b1
2011-01-10 22:07:01 +00:00
Peter Cowburn
e0a1897f5e Added $step default value (1) for range(). Fixes doc #53555
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@306400 c90b9560-bf6c-de11-be94-00142212c4b1
2010-12-16 11:16:38 +00:00
Justin Martin
f653adafd6 Clarified example as per bug #53265.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@305207 c90b9560-bf6c-de11-be94-00142212c4b1
2010-11-08 18:06:30 +00:00
Peter Cowburn
315b44a819 Typo fix (closes doc #53193)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@304976 c90b9560-bf6c-de11-be94-00142212c4b1
2010-10-28 14:52:00 +00:00
Richard Quadling
070d3068ad 2 <refsect1 role="examples">'s => 1 <refsect1 role="examples">.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@304438 c90b9560-bf6c-de11-be94-00142212c4b1
2010-10-15 15:09:39 +00:00
Adam Harvey
ec91a6e90f Fix doc bug #52852 (array_merge modifies numerical keys even if non-numerical).
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@303390 c90b9560-bf6c-de11-be94-00142212c4b1
2010-09-15 10:29:44 +00:00
Adam Harvey
90783beb49 Fix doc bug #52806 (key_exists (alias of array_key_exists) undocumented) by
adding key_exists() to the list of function aliases and moving the note about
the deprecated alias to the normal place on the array_key_exists() manual page.
Also removed the now horribly out of date note on the function alias list about
it being correct "as of 4.0.6".


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@303248 c90b9560-bf6c-de11-be94-00142212c4b1
2010-09-10 02:53:06 +00:00
Gustavo André dos Santos Lopes
a0575612f2 * Made clearer the requirements for the callback function, as per bug #52778
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@303045 c90b9560-bf6c-de11-be94-00142212c4b1
2010-09-05 05:26:29 +00:00
Adam Harvey
d5e635d12d Fix doc bug #52646 (contradicting information regarding "sort_flags").
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@302524 c90b9560-bf6c-de11-be94-00142212c4b1
2010-08-20 05:29:16 +00:00
Philip Olson
380c441c88 Clarified (in the description) that entry keys are returned. Closes PHP bug #52247
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@302055 c90b9560-bf6c-de11-be94-00142212c4b1
2010-08-10 01:31:30 +00:00
Mark Wiesemann
d7fad8f1ed fixed changelog order (descending seems to be common)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@301582 c90b9560-bf6c-de11-be94-00142212c4b1
2010-07-26 19:46:57 +00:00
Daniel Egeberg
ac57e6596c Fixed PHP bug #52437 (array_unique version misleading)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@301530 c90b9560-bf6c-de11-be94-00142212c4b1
2010-07-25 11:12:19 +00:00
Daniel Egeberg
9280b06246 Fixed PHP bug #52392 (Small, but important addictions in "Return Values" and "See Also")
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@301475 c90b9560-bf6c-de11-be94-00142212c4b1
2010-07-22 17:59:08 +00:00
Peter Cowburn
7653b91a1f smush another pesky PHP 6
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@299468 c90b9560-bf6c-de11-be94-00142212c4b1
2010-05-18 20:49:29 +00:00
Philip Olson
08e2e3465c Added note about 5.2.10 '0' padding change, and added a bunch of gotcha-like examples as expressed in several user notes
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@299436 c90b9560-bf6c-de11-be94-00142212c4b1
2010-05-18 01:43:37 +00:00
Daniel Egeberg
99a0f11459 Fixed PHP bug #51828 (example of natsort should compare with asort function)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@299407 c90b9560-bf6c-de11-be94-00142212c4b1
2010-05-15 21:49:14 +00:00
Peter Cowburn
426ec589cc clarify array_merge reindexing behaviour with numeric-only keys (bug #51699)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@298804 c90b9560-bf6c-de11-be94-00142212c4b1
2010-04-30 12:27:36 +00:00