rfc:array_change_keys

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
rfc:array_change_keys [2016/05/31 01:32] – Update pros & cons colinodellrfc:array_change_keys [2016/05/31 02:16] – Emphasize that no new quirks are being added 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.  No new edge cases or quirks are being introduced with this RFC.
  
 === Faster Execution Than array_combine() === === Faster Execution Than array_combine() ===
rfc/array_change_keys.txt · Last modified: 2018/11/27 23:34 by colinodell