php-src/ext/standard/tests/strings/substr_replace_array.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

19 lines
308 B
PHP

--TEST--
substr_replace() function - array
--FILE--
<?php
$arr = array('abc' => 'llsskdkk','def' => 'llsskjkkdd', 4 => 'hello', 42 => 'world');
$newarr = substr_replace($arr, 'zzz', 0, -2);
print_r($newarr);
?>
--EXPECT--
Array
(
[abc] => zzzkk
[def] => zzzdd
[4] => zzzlo
[42] => zzzld
)