diff options
| author | Peter Kokot <peterkokot@gmail.com> | 2018-10-14 15:37:22 +0200 |
|---|---|---|
| committer | Peter Kokot <peterkokot@gmail.com> | 2018-10-14 19:43:12 +0200 |
| commit | 7af945e271d042a4991c9510f78b6ff7ac43ac34 (patch) | |
| tree | 31d3b7a69f017cd532c5fe31ce1664d426384f82 /ext/pcre/tests/preg_replace_callback_basic.phpt | |
| parent | afd534f1634e9a5d631afac39a9c9b09b1ba8b33 (diff) | |
| download | php-git-7af945e271d042a4991c9510f78b6ff7ac43ac34.tar.gz | |
Trim trailing whitespace in *.phpt
Diffstat (limited to 'ext/pcre/tests/preg_replace_callback_basic.phpt')
| -rw-r--r-- | ext/pcre/tests/preg_replace_callback_basic.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pcre/tests/preg_replace_callback_basic.phpt b/ext/pcre/tests/preg_replace_callback_basic.phpt index 01d290a1b9..6f359f27eb 100644 --- a/ext/pcre/tests/preg_replace_callback_basic.phpt +++ b/ext/pcre/tests/preg_replace_callback_basic.phpt @@ -1,5 +1,5 @@ --TEST-- -Test preg_replace_callback() function : basic functionality +Test preg_replace_callback() function : basic functionality --FILE-- <?php /* @@ -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); |
