Christoph M. Becker
5d775e7df5
Fix GH-2115: Typo in unpacking
2022-12-26 15:07:02 +01:00
Pierrick Charron
6b56d33993
Describe PHP8 behavior as default in array doc
2022-09-09 17:10:04 -04:00
Kamil Tekiela
fb6ffde972
Add docs about array destructuring ( #796 )
2022-08-18 12:21:58 +01:00
Yoshinari Takaoka
2ff6e6bcad
[PHP 8.1] Document Array Unpacking with [int|string] Keys. ( #1171 )
...
Co-authored-by: George Peter Banyard <girgias@php.net >
2021-12-03 12:05:42 +00:00
Yoshinari Takaoka
c140370c35
Document autovivification from false deprecation. ( #1126 )
2021-11-27 01:38:00 +09:00
Christoph M. Becker
d332b5ae70
Uninitialized type properties are silently discarded on array cast
...
Cf. <https://bugs.php.net/81629 >.
2021-11-17 15:15:09 +01:00
Kamil Tekiela
a8b8d435a7
The fallback for undefined constants is removed as of PHP 8 ( #795 )
2021-08-06 14:00:39 +01:00
Dan Brown
35af8187d0
Updated string & array curly brace access with support notice ( #546 )
...
The documentation still states that array/string curly brace access
is possible but this was deprecated as of PHP 7.4 as per this RFC:
https://wiki.php.net/rfc/deprecate_curly_braces_array_access
and no longer supported as of PHP 8.
2021-04-26 13:24:09 +02:00
Gabriel Millian
4bf7d10a44
Fix errors in the comments of example number 6
...
Closes GH-500.
2021-03-22 16:44:17 +01:00
George Peter Banyard
fc26164b4b
Hot fix for comment of last line
2021-03-11 13:51:06 +00:00
George Peter Banyard
68c0fcdb9e
Add example of a float string as an array key
...
The behaviour is different from a float key
Also reorder to put this example closer to the numeric keys
Use single quotes consistently
Closes GH-487
2021-03-11 13:49:51 +00:00
Alex Erohin
529359031b
Add final example includes all variations of type casting and overwriting
...
Closes GH-450.
2021-02-22 17:48:22 +01:00
Christoph M. Becker
3ba291b86a
Slightly improve previous commit
...
Sorry, forgot to do right away.
2021-02-22 17:25:33 +01:00
Alex Erohin
3801e08ff8
Added protected property example for Object To Array conversion
...
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de >
Closes GH-453.
2021-02-22 17:10:05 +01:00
Christoph Michael Becker
6de2e5772f
Update note wrt. PHP 7.4 and 8.0
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351216 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-04 11:33:18 +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
George Peter Banyard
cdaea04215
Remove mention of PHP 5 in Language Reference section
...
This does not cover the OOP nor Error sections, but everything else should be covered
Closes GH-156
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351112 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-31 19:13:58 +00:00
Christoph Michael Becker
74a8bfdfce
Add missing xml:id
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346012 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-18 11:15:45 +00:00
Christoph Michael Becker
9c902ef963
Document deprecation of undefined constant as bare string fallback
...
Cf. <https://wiki.php.net/rfc/deprecate-bareword-strings >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345953 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-05 14:09:08 +00:00
Christoph Michael Becker
57b593d529
Not all strings containing valid integers are cast to int
...
This commit includes user note 117129 into the manual.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342559 c90b9560-bf6c-de11-be94-00142212c4b1
2017-06-07 15:09:53 +00:00
Christoph Michael Becker
a66ee8dc56
Fix grammar, add markup, remove PHP 4 info
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341143 c90b9560-bf6c-de11-be94-00142212c4b1
2016-11-25 16:32:05 +00:00
Christoph Michael Becker
1b5a19a7b4
Fix #72430 : [] operator not supported for strings
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340030 c90b9560-bf6c-de11-be94-00142212c4b1
2016-09-14 10:56:07 +00:00
Christoph Michael Becker
69c0c0c9ed
Document behavior of array dereferencing scalar values
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339937 c90b9560-bf6c-de11-be94-00142212c4b1
2016-08-25 11:41:19 +00:00
Levi Morrison
f616f360e1
Changed 'hallo' to 'hello'.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332515 c90b9560-bf6c-de11-be94-00142212c4b1
2013-12-27 03:47:35 +00:00
Yannick Torres
33040b3b1b
Typo found by online editor user
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331135 c90b9560-bf6c-de11-be94-00142212c4b1
2013-08-16 09:25:19 +00:00
Philip Olson
04b11e621f
Fixed spelling
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329325 c90b9560-bf6c-de11-be94-00142212c4b1
2013-01-29 01:47:09 +00:00
Adam Harvey
8ad0d94e1c
Add initial migration guide for PHP 5.5.
...
What's done: the migration guide itself, updates to existing functions and
functionality, and new language features.
What's not done: stub pages for new functions and methods. (I'd rather get this
in now, though, than have it languish on my hard drive any longer so that other
people can contribute.)
What could use help: the generator chapter is pretty rough and ready. Better
examples would be awesome. I certainly won't argue if somebody wants to add the
function stubs, either.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328430 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-20 15:17:23 +00:00
Sherif Ramadan
08ef640318
Fixed line wrap from revision 328358
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328359 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-14 17:41:40 +00:00
Sherif Ramadan
bf9085b2b1
Added note for accessing array elements with curly braces - fixes bug #55324
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328358 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-14 17:08:15 +00:00
Nikita Popov
d7b608d1cb
Move string offset peculiarities between PHP versions off into the string offset docs
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327267 c90b9560-bf6c-de11-be94-00142212c4b1
2012-08-25 14:37:42 +00:00
Maciek Sokolewicz
d8cb34e3cd
reworded some text to follow proper english grammar
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@325238 c90b9560-bf6c-de11-be94-00142212c4b1
2012-04-16 17:09:48 +00:00
TAKAGI Masahiro
9c814482b6
tweak example.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324720 c90b9560-bf6c-de11-be94-00142212c4b1
2012-04-02 20:52:07 +00:00
TAKAGI Masahiro
abe03dab3f
fix build.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324676 c90b9560-bf6c-de11-be94-00142212c4b1
2012-04-01 11:28:58 +00:00
Yasuo Ohgaki
3e98008af4
Improve array doc for string offset access.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324661 c90b9560-bf6c-de11-be94-00142212c4b1
2012-03-31 09:22:45 +00:00
Nikita Popov
84c203fba7
Minor changes to array docs
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324573 c90b9560-bf6c-de11-be94-00142212c4b1
2012-03-27 09:36:20 +00:00
Jakub Vrana
337409a8c5
Omissions and best practices
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324121 c90b9560-bf6c-de11-be94-00142212c4b1
2012-03-12 05:06:15 +00:00
Nikita Popov
63f0c045f9
Add array dereferencing to array docs
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323755 c90b9560-bf6c-de11-be94-00142212c4b1
2012-03-02 00:34:47 +00:00
Nikita Popov
c272030e25
Restructure array docs so related information goes together (like key type handling). Also add note about 5.4 syntax.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323718 c90b9560-bf6c-de11-be94-00142212c4b1
2012-03-01 16:51:53 +00:00
Shein Alexey
88723b48e9
Fixed example title.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@308159 c90b9560-bf6c-de11-be94-00142212c4b1
2011-02-09 11:58:25 +00:00
Torben Wilson
af4410a7e1
Normalized the sgml-default-dtd-file local-variable line for those
...
still using this, after discussion on the phpdoc list.
From now on, manual.ced will need to be found at ~/.phpdoc/manual.ced.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288721 c90b9560-bf6c-de11-be94-00142212c4b1
2009-09-25 07:04:39 +00:00
Torben Wilson
e99cfa6a1a
Used the entity for &null;.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@287788 c90b9560-bf6c-de11-be94-00142212c4b1
2009-08-27 04:22:21 +00:00
Torben Wilson
37036f13a7
Clarified what will happen when attempting to access an undefined array index.
...
Addresses Bug #49202 .
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@287729 c90b9560-bf6c-de11-be94-00142212c4b1
2009-08-26 06:34:00 +00:00
Nilgün Belma Bugüner
04077dd209
fixed properties
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@283798 c90b9560-bf6c-de11-be94-00142212c4b1
2009-07-11 06:17:58 +00:00
Richard Quadling
5aedae62db
literal => constant for error constants
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@282808 c90b9560-bf6c-de11-be94-00142212c4b1
2009-06-26 07:38:42 +00:00
Karoly Negyesi
ffb4866771
removed a piece, it was repeated, badly worded and off topic at the repeated location
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@282507 c90b9560-bf6c-de11-be94-00142212c4b1
2009-06-21 16:34:09 +00:00
Damien Seguy
01253d3618
introduction of the foreach entity
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@275923 c90b9560-bf6c-de11-be94-00142212c4b1
2009-02-16 15:30:18 +00:00
Jakub Vrana
95f43a7118
Integer properties in object to array cast (bug #45959 )
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@268348 c90b9560-bf6c-de11-be94-00142212c4b1
2008-11-05 10:56:08 +00:00
Jakub Vrana
3ef6a74874
Copying an array may not lead to pointer reset (bug #45369 )
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@268347 c90b9560-bf6c-de11-be94-00142212c4b1
2008-11-05 10:53:52 +00:00
Torben Wilson
d8b6d29279
Tiny update to make the examples of array definition functionally
...
equivalent. Addresses Bug #46251 .
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@268325 c90b9560-bf6c-de11-be94-00142212c4b1
2008-11-05 06:16:51 +00:00
Gwynne Raskind
0feec568a3
Major cleanup of language.types.*; mostly grammatical work, some markup and WS fixes, no new content. The title 'Resource' was changed to 'Resources' for consistency; a TOC regen is needed to reflect it.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@253468 c90b9560-bf6c-de11-be94-00142212c4b1
2008-02-21 18:43:17 +00:00