Home
last modified time | relevance | path

Searched refs:substr_replace (Results 1 – 16 of 16) sorted by relevance

/PHP-8.1/ext/standard/tests/strings/
H A Dsubstr_replace.phpt2 substr_replace() function
11 echo "substr_replace('$str', '$repl', $start)\n";
12 var_dump(substr_replace($str, $repl, $start));
16 echo "substr_replace('$str', '$repl', $start, $len)\n";
17 var_dump(substr_replace($str, $repl, $start, $len));
22 var_dump(substr_replace($str, $repl, $start, $len));
27 var_dump(substr_replace($str, $repl, $start, $len));
449 substr_replace('try this', 'bala ', 2)
452 substr_replace('try this', 'bala ', 2, 3)
455 substr_replace('try this', 'bala ', 2, 0)
[all …]
H A Dsubstr_replace_error.phpt2 Test substr_replace() function : error conditions
6 * Testing substr_replace() for error conditions
9 echo "*** Testing substr_replace() : error conditions ***\n";
13 echo "\n-- Testing substr_replace() function with start and length as arrays but string not--\n";
15 var_dump(substr_replace($s1, "evening", array(5)));
20 var_dump(substr_replace($s1, "evening", 5, array(1)));
27 *** Testing substr_replace() : error conditions ***
29 -- Testing substr_replace() function with start and length as arrays but string not--
30 substr_replace(): Argument #3 ($offset) cannot be an array when working on a single string
31 substr_replace(): Argument #4 ($length) cannot be an array when working on a single string
H A Dsubstr_replace_array_unset.phpt2 substr_replace() function - array with unset
8 $newarr = substr_replace(['1 string', '2 string'], $replacement, 0);
13 $newarr = substr_replace(['1 string', '2 string'], $replacement, 0);
H A Dbug55871.phpt2 Bug #55871 (Interruption in substr_replace()) (PHP7)
27 $out = substr_replace(array(&$my_var), array(new test1), 40, 0);
30 $out = substr_replace(array(&$my_var), array(new test2), 40, 0);
33 $out = substr_replace(array(&$my_var), array(new test3), 40, 0);
H A Dbug72146.phpt2 Bug #72146 (Integer overflow on substr_replace)
5 var_dump(substr_replace(["ABCDE"], "123", 3, PHP_INT_MAX));
H A Dbug42208.phpt2 Bug #42208 (substr_replace() crashes when the same array is passed more than once)
7 var_dump(substr_replace($a, 1, 1, $c));
H A Dsubstr_replace_array.phpt2 substr_replace() function - array
7 $newarr = substr_replace($arr, 'zzz', 0, -2);
H A Dbug71190.phpt2 Bug #71190 (substr_replace converts integers in original $search array to strings)
8 substr_replace("test", $b, "1");
H A Dbug54238.phpt2 Bug #54238 (use-after-free in substr_replace())
7 $z = substr_replace($f, $f, $f, 1);
H A Dbug40754.phpt9 var_dump(substr_replace("abcde", "x", $v, $v));
/PHP-8.1/ext/standard/tests/
H A Dbug71827.phpt2 Bug #71827 (substr_replace bug when length type is string )
6 $line = substr_replace($line,$value,$pos,$len);
/PHP-8.1/Zend/tests/
H A Dcall_with_refs.phpt14 $data = call_user_func_array("substr_replace",array(&$my_var, new Test(), 1));
/PHP-8.1/ext/standard/
H A Dbasic_functions.stub.php802 function substr_replace(array|string $string, array|string $replace, array|int $offset, array|int|n… function
H A Dbasic_functions_arginfo.h2488 ZEND_FUNCTION(substr_replace);
3128 ZEND_FE(substr_replace, arginfo_substr_replace)
H A Dstring.c2281 PHP_FUNCTION(substr_replace) argument
/PHP-8.1/
H A DNEWS896 . Fix substr_replace with slots in repl_ht being UNDEF. (nielsdos)

Completed in 57 milliseconds