Home
last modified time | relevance | path

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

123

/PHP-8.2/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-8.2/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-8.2/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-8.2/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-8.2/Zend/tests/
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);
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-8.2/ext/pcre/tests/
H A Dpreg_replace_error2.phpt9 * Testing how preg_replace reacts to being passed the wrong type of replacement argument
38 preg_replace(): Argument #1 ($pattern) must be of type array when argument #2 ($replacement) is an …
39 preg_replace(): Argument #2 ($replacement) must be of type array|string, stdClass given
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…
H A Dpreg_replace_callback_error1.phpt17 $replacement = array('zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'…
19 global $replacement;
20 return $replacement[$matches[0]];
/PHP-8.2/ext/mbstring/tests/
H A Dmb_eregi_replace.phpt12 $replacement = array(
27 foreach($replacement as $i=>$u) {
H A Dencoding_tests.inc130 function testAllInvalidChars($badChars, $charMap, $fromEncoding, $toEncoding, $replacement) {
140 $toString = $replacement . $charMap[$goodChar];
146 function convertAllInvalidChars($badChars, $charMap, $fromEncoding, $toEncoding, $replacement) {
156 $toString = $replacement . $charMap[$goodChar];
162 function testTruncatedChars($truncated, $fromEncoding, $toEncoding, $replacement) {
165 testInvalidString($truncatedChar, $replacement, $fromEncoding, $toEncoding);
235 function testEncodingFromUTF16ConversionTable($path, $encoding, $replacement = '%', $startBytes = a…
247 convertAllInvalidChars($invalid, $fromUnicode, 'UTF-16BE', $encoding, $replacement);
/PHP-8.2/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-8.2/ext/pcre/
H A Dphp_pcre.stub.php111 function preg_replace(string|array $pattern, string|array $replacement, string|array $subject, int … argument
117 function preg_filter(string|array $pattern, string|array $replacement, string|array $subject, int $… argument
/PHP-8.2/ext/standard/tests/streams/
H A Dbug61115.phpt17 preg_replace(): Argument #2 ($replacement) must be of type array|string, Closure given

Completed in 39 milliseconds

123