--TEST-- Test array_splice(): basic functionality --FILE-- --EXPECT-- *** Testing array_splice() basic operations *** test truncation array(2) { [0]=> unicode(4) "blue" [1]=> unicode(6) "yellow" } array(2) { [0]=> unicode(3) "red" [1]=> unicode(5) "green" } test removing entries from the middle array(2) { [0]=> unicode(5) "green" [1]=> unicode(4) "blue" } array(2) { [0]=> unicode(3) "red" [1]=> unicode(6) "yellow" } test substitution at end array(3) { [0]=> unicode(5) "green" [1]=> unicode(4) "blue" [2]=> unicode(6) "yellow" } array(2) { [0]=> unicode(3) "red" [1]=> unicode(6) "orange" } array(1) { [0]=> unicode(6) "yellow" } array(5) { [0]=> unicode(3) "red" [1]=> unicode(5) "green" [2]=> unicode(4) "blue" [3]=> unicode(5) "black" [4]=> unicode(6) "maroon" } test insertion array(0) { } array(5) { [0]=> unicode(3) "red" [1]=> unicode(5) "green" [2]=> unicode(4) "blue" [3]=> unicode(6) "purple" [4]=> unicode(6) "yellow" }