rfc:convert_numeric_keys_in_object_array_casts
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
rfc:convert_numeric_keys_in_object_array_casts [2016/11/14 17:43] – mention langspec ajf | rfc:convert_numeric_keys_in_object_array_casts [2016/11/14 18:04] – correct regex ajf | ||
---|---|---|---|
Line 10: | Line 10: | ||
The PHP language has two core data types which are collections of key/value pairs. | The PHP language has two core data types which are collections of key/value pairs. | ||
- | The first of these, the //array//, is an ordered map of integer or string keys to arbitrary values. There is no overlap between integer and string keys in arrays; if a string fits the format ''/ | + | The first of these, the //array//, is an ordered map of integer or string keys to arbitrary values. There is no overlap between integer and string keys in arrays; if a string fits the format ''/ |
The second of these, the //object//, is an ordered map of string property names to arbitrary values. Integer property names are not permitted, these are converted to string property names. Objects have some other attributes, but they do not concern us here. | The second of these, the //object//, is an ordered map of string property names to arbitrary values. Integer property names are not permitted, these are converted to string property names. Objects have some other attributes, but they do not concern us here. |
rfc/convert_numeric_keys_in_object_array_casts.txt · Last modified: 2017/11/30 14:50 by ajf