Home
last modified time | relevance | path

Searched refs:replacement (Results 1 – 25 of 65) sorted by relevance

123

/php-src/ext/standard/tests/strings/
H A Dsubstr_replace_array_unset.phpt6 $replacement = ['A', 'C', 'B'];
7 unset($replacement[1]);
8 $newarr = substr_replace(['1 string', '2 string'], $replacement, 0);
11 $replacement = ['foo', 42 => 'bar', 'baz'];
12 unset($replacement[42]);
13 $newarr = substr_replace(['1 string', '2 string'], $replacement, 0);
H A Dlevenshtein.phpt32 echo '--- Expensive replacement ---' . \PHP_EOL;
34 echo '--- Very expensive replacement ---' . \PHP_EOL;
60 --- Expensive replacement ---
62 --- Very expensive replacement ---
H A Dbug27276.phpt6 $replacement = str_repeat("x", 12444);
10 str_replace($key, $replacement, $string);
H A Dstrtr_empty_search_string.phpt11 Warning: strtr(): Ignoring replacement of empty string in %s on line %d
14 Warning: strtr(): Ignoring replacement of empty string in %s on line %d
/php-src/ext/standard/tests/array/
H A Darray_splice_variation3.phpt76 - No replacement
117 - No replacement
158 - No replacement
199 - No replacement
240 - No replacement
281 - No replacement
322 - No replacement
363 - No replacement
404 - No replacement
445 - No replacement
[all …]
H A Darray_splice_variation4.phpt2 Test array_splice() function : usage variations - non array replacement values
9 function test_splice ($replacement)
12 var_dump (array_splice ($input_array,2,0,$replacement));
H A Darray_splice_variation1.phpt28 echo "Test behaviour of replacement array containing references \n";
37 echo "Test behaviour of replacement which is part of reference set \n";
90 Test behaviour of replacement array containing references
101 Test behaviour of replacement which is part of reference set
/php-src/ext/spl/tests/
H A Dbug54304.phpt2 Bug #54304 (Setting replacement value for RegexIterator doesn't work)
14 $i->replacement = "42";
15 var_dump($i->replacement);
19 var_dump($i->replacement);
H A Dbug50579.phpt16 $i->replacement = '[$0]';
21 $i->replacement = '$1';
28 $i->replacement = '[$1]';
H A DRegexIterator_with_reference_replacement.phpt2 RegexIterator with $replacement being a reference
8 $i->replacement =& $r;
/php-src/ext/dom/tests/
H A Dgh11625.phpt27 echo "--- Single replacement ---\n";
35 echo "--- Multiple replacement ---\n";
43 echo "--- Empty fragment replacement ---\n";
52 --- Single replacement ---
59 --- Multiple replacement ---
66 --- Empty fragment replacement ---
H A DDOM4_ParentNode_append_with_attributes.phpt12 $replacement = $dom->createAttribute('attr-one');
13 $replacement->value ='42';
20 $element->append($replacement, $addition);
/php-src/Zend/tests/foreach/
H A Dforeach_017.phpt41 $replacement = ['x', 'y', 'z'];
50 array_splice($a, 1, 2, $replacement);
62 array_splice($a, 2, 2, $replacement);
74 array_splice($a, 1, 3, $replacement);
/php-src/ext/pcre/tests/
H A Dpreg_replace_error2.phpt9 * Testing how preg_replace reacts to being passed the wrong type of replacement argument
30 preg_replace(): Argument #1 ($pattern) must be of type array when argument #2 ($replacement) is an …
31 preg_replace(): Argument #2 ($replacement) must be of type array|string, stdClass given
H A Dpreg_replace_callback_error1.phpt23 $replacement = [
36 global $replacement;
37 return $replacement[$matches[0]];
H A Dpreg_replace_callback_basic.phpt11 $replacement = array('zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'…
13 global $replacement;
14 …return $replacement[$matches[0]]; //all examples will be looking for an integer value, if one is f…
/php-src/ext/mbstring/tests/
H A Dmb_eregi_replace.phpt12 $replacement = array(
27 foreach($replacement as $i=>$u) {
H A Dencoding_tests.inc164 function testAllInvalidChars($badChars, $charMap, $fromEncoding, $toEncoding, $replacement) {
174 $toString = $replacement . $charMap[$goodChar];
180 function convertAllInvalidChars($badChars, $charMap, $fromEncoding, $toEncoding, $replacement) {
190 $toString = $replacement . $charMap[$goodChar];
196 function testTruncatedChars($truncated, $fromEncoding, $toEncoding, $replacement) {
199 testInvalidString($truncatedChar, $replacement, $fromEncoding, $toEncoding);
269 function testEncodingFromUTF16ConversionTable($path, $encoding, $replacement = '%', $startBytes = a…
281 convertAllInvalidChars($invalid, $fromUnicode, 'UTF-16BE', $encoding, $replacement);
/php-src/ext/standard/tests/file/
H A Dfile_variation.phpt36 echo "File contents in array form Before replacement of the key\n";
44 echo "File contents in array form After replacement of the key\n";
135 File contents in array form Before replacement of the key
146 File contents in array form After replacement of the key
/php-src/ext/pcre/
H A Dphp_pcre.stub.php115 function preg_replace(string|array $pattern, string|array $replacement, string|array $subject, int … argument
121 function preg_filter(string|array $pattern, string|array $replacement, string|array $subject, int $… argument
/php-src/Zend/tests/heredoc_nowdoc/
H A Dheredoc_003.phpt2 simple variable replacement test (heredoc)
H A Dheredoc_004.phpt2 braces variable replacement test (heredoc)
H A Dnowdoc_003.phpt2 simple variable replacement test (nowdoc)
H A Dnowdoc_004.phpt2 braces variable replacement test (nowdoc)
/php-src/ext/standard/tests/streams/
H A Dbug61115.phpt17 preg_replace(): Argument #2 ($replacement) must be of type array|string, Closure given

Completed in 25 milliseconds

123