diff options
Diffstat (limited to 'ext/pcre/tests/preg_replace_callback_basic.phpt')
| -rw-r--r-- | ext/pcre/tests/preg_replace_callback_basic.phpt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pcre/tests/preg_replace_callback_basic.phpt b/ext/pcre/tests/preg_replace_callback_basic.phpt index 45778871db..21560572d5 100644 --- a/ext/pcre/tests/preg_replace_callback_basic.phpt +++ b/ext/pcre/tests/preg_replace_callback_basic.phpt @@ -13,7 +13,7 @@ $replacement = array('zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seve function integer_word($matches) { global $replacement; return $replacement[$matches[0]]; //all examples will be looking for an integer value, if one is found it will be stored in $matches[0] which corresponds to a key in the $replacements array - + } $subject1 = 'there are 7 words in this sentence.'; $new_subject1 = preg_replace_callback('/\d/', "integer_word", $subject1); |
