rfc:array_part

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
rfc:array_part [2012/05/21 21:03] – no references cataphractrfc:array_part [2012/05/28 13:31] – [Changelog] cataphract
Line 78: Line 78:
  
 This is true. We must traverse the array from the start or the end to get to the n-th element. That's just the way PHP arrays are implemented. However, if you have numeric sequential arrays, you can use ''$indexesAreKeys = true'' to access the n-th element without this penalty (also note that the sample implementation is **not** optimized). This is true. We must traverse the array from the start or the end to get to the n-th element. That's just the way PHP arrays are implemented. However, if you have numeric sequential arrays, you can use ''$indexesAreKeys = true'' to access the n-th element without this penalty (also note that the sample implementation is **not** optimized).
 +
 +===== Vote =====
 +
 +<doodle 
 +title="Should the current array_part() implementation be merged" auth="cataphract" voteType="single" closed="False">
 +   * Yes
 +   * No
 +</doodle>
  
 ===== Changelog ===== ===== Changelog =====
Line 84: Line 92:
   * 2012-05-21 Dropped recursion restriction, added note on how references are preserved, added link to native implementation   * 2012-05-21 Dropped recursion restriction, added note on how references are preserved, added link to native implementation
   * 2012-05-21 References are not preserved after all   * 2012-05-21 References are not preserved after all
 +  * 2012-05-28 Vote opened
  
rfc/array_part.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1