rfc:implement-strrstr-for-consistency

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
rfc:implement-strrstr-for-consistency [2019/06/20 11:33] girgiasrfc:implement-strrstr-for-consistency [2019/07/03 10:11] (current) girgias
Line 3: Line 3:
   * Date: 2019-06-20   * Date: 2019-06-20
   * Author: George Peter Banyard <girgias@php.net>   * Author: George Peter Banyard <girgias@php.net>
-  * Status: Draft+  * Status: Withdrawn (2019-07-03) 
   * First Published at: http://wiki.php.net/rfc/implement-strrstr-for-consistency   * First Published at: http://wiki.php.net/rfc/implement-strrstr-for-consistency
  
 ===== Introduction ===== ===== Introduction =====
-Implement <php>strrstr</php> (and possibly <php>strristr</php>) for consistency with the <php>strpos</php> string functions family. +Implement <php>strrstr</php> (and possibly <php>strristr</php>) for consistency with the <php>strpos</php> string functions family. 
  
-===== Proposal ===== 
 Currently there exist no "proper" counter part to the <php>strstr</php> (and <php>stristr</php>) standard string function. Currently there exist no "proper" counter part to the <php>strstr</php> (and <php>stristr</php>) standard string function.
 There exist <php>strrchr</php> however it does not have the same signature as <php>strstr</php> nor <php>strchr</php> as <php>strchr</php> is an alias of <php>strstr</php>, nor does it provide the same features. There exist <php>strrchr</php> however it does not have the same signature as <php>strstr</php> nor <php>strchr</php> as <php>strchr</php> is an alias of <php>strstr</php>, nor does it provide the same features.
 +
 +===== Proposal =====
 +Implement <php>strrstr</php> and <php>strristr</php> (?) in PHP 7.4 with the same features as <php>strstr</php>, meaning that the ''$needle'' parameter can accept multiple characters and add a boolean parameter ''$before_needle'' which has a default value of <php>false</php>.
 +
  
 ===== Pros ===== ===== Pros =====
Line 46: Line 50:
  
 ===== References ===== ===== References =====
-Links to external references, discussions or RFCs+Announcement on internals: [[https://externals.io/message/105997]]
  
rfc/implement-strrstr-for-consistency.1561030409.txt.gz · Last modified: 2019/06/20 11:33 by girgias