1--TEST--
2substr_replace() function - array with unset
3--FILE--
4<?php
5
6$replacement = ['A', 'C', 'B'];
7unset($replacement[1]);
8$newarr = substr_replace(['1 string', '2 string'], $replacement, 0);
9print_r($newarr);
10
11$replacement = ['foo', 42 => 'bar', 'baz'];
12unset($replacement[42]);
13$newarr = substr_replace(['1 string', '2 string'], $replacement, 0);
14print_r($newarr);
15
16?>
17--EXPECT--
18Array
19(
20    [0] => A
21    [1] => B
22)
23Array
24(
25    [0] => foo
26    [1] => baz
27)
28