/PHP-8.2/ext/standard/tests/strings/ |
H A D | substr_replace_array_unset.phpt | 6 $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 D | levenshtein.phpt | 32 echo '--- Expensive replacement ---' . \PHP_EOL; 34 echo '--- Very expensive replacement ---' . \PHP_EOL; 60 --- Expensive replacement --- 62 --- Very expensive replacement ---
|
H A D | bug27276.phpt | 6 $replacement = str_repeat("x", 12444); 10 str_replace($key, $replacement, $string);
|
H A D | strtr_empty_search_string.phpt | 11 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 D | array_splice_variation3.phpt | 76 - 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 D | array_splice_variation4.phpt | 2 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 D | array_splice_variation1.phpt | 28 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 D | bug54304.phpt | 2 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 D | bug50579.phpt | 16 $i->replacement = '[$0]'; 21 $i->replacement = '$1'; 28 $i->replacement = '[$1]';
|
H A D | RegexIterator_with_reference_replacement.phpt | 2 RegexIterator with $replacement being a reference 8 $i->replacement =& $r;
|
/PHP-8.2/ext/dom/tests/ |
H A D | gh11625.phpt | 27 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 D | DOM4_ParentNode_append_with_attributes.phpt | 12 $replacement = $dom->createAttribute('attr-one'); 13 $replacement->value ='42'; 20 $element->append($replacement, $addition);
|
/PHP-8.2/Zend/tests/ |
H A D | foreach_017.phpt | 41 $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 D | heredoc_003.phpt | 2 simple variable replacement test (heredoc)
|
H A D | heredoc_004.phpt | 2 braces variable replacement test (heredoc)
|
H A D | nowdoc_003.phpt | 2 simple variable replacement test (nowdoc)
|
H A D | nowdoc_004.phpt | 2 braces variable replacement test (nowdoc)
|
/PHP-8.2/ext/pcre/tests/ |
H A D | preg_replace_error2.phpt | 9 * 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 D | preg_replace_callback_basic.phpt | 11 $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 D | preg_replace_callback_error1.phpt | 17 $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 D | mb_eregi_replace.phpt | 12 $replacement = array( 27 foreach($replacement as $i=>$u) {
|
H A D | encoding_tests.inc | 130 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 D | file_variation.phpt | 36 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 D | php_pcre.stub.php | 111 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 D | bug61115.phpt | 17 preg_replace(): Argument #2 ($replacement) must be of type array|string, Closure given
|