rfc:preg_replace_callback_array

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
rfc:preg_replace_callback_array [2015/03/10 13:53]
demon
rfc:preg_replace_callback_array [2015/05/09 20:44]
nikic implemented
Line 3: Line 3:
   * Date: 2015-03-10   * Date: 2015-03-10
   * Author: Wei Dai, demon@php.net   * Author: Wei Dai, demon@php.net
-  * Status: Draft+  * Status: Implemented (in PHP 7.0)
   * First Published at: https://wiki.php.net/rfc/preg_replace_callback_array   * First Published at: https://wiki.php.net/rfc/preg_replace_callback_array
  
Line 73: Line 73:
 </code> </code>
  
-The first parameter is an array in this function. In this parameter, Key is parameter, and value is callback. Subject will iterate and match each key. If it is matched, the callback will be called. In the meanwhile, the result will be the new subject and passed to the next match. +The first parameter is an array in this function. In this parameter, Key is pattern, and value is callback. Subject will iterate and match each key. If it is matched, the callback will be called. In the meanwhile, the result will be the new subject and passed to the next match. 
  
  
Line 88: Line 88:
  
 ===== Patches and Tests ===== ===== Patches and Tests =====
-Write it later.+Currently implemented on https://github.com/php/php-src/pull/1171
  
rfc/preg_replace_callback_array.txt · Last modified: 2017/09/22 13:28 (external edit)