rfc:array_change_keys
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:array_change_keys [2016/05/31 01:32] – Update pros & cons colinodell | rfc:array_change_keys [2016/05/31 02:20] – Revise "Future Scope", mentioning Traversable objects colinodell | ||
---|---|---|---|
Line 134: | Line 134: | ||
Using this function makes it immediately obvious to other developers that an array is being re-keyed. | Using this function makes it immediately obvious to other developers that an array is being re-keyed. | ||
+ | |||
+ | === Matches Existing Behavior === | ||
+ | |||
+ | The "edge cases" mentioned above (returning invalid types or duplicate keys) matches existing behavior in PHP that developers already understand and expect. | ||
=== Faster Execution Than array_combine() === | === Faster Execution Than array_combine() === | ||
Line 184: | Line 188: | ||
===== Future Scope ===== | ===== Future Scope ===== | ||
- | Returning | + | Other '' |
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== |
rfc/array_change_keys.txt · Last modified: 2018/11/27 23:34 by colinodell