<?php $colecao = ['item1','item2','item4','item5']; array_splice($colecao, 2, 0, "item3"); print_r($colecao);
Standard input is empty
Array ( [0] => item1 [1] => item2 [2] => item3 [3] => item4 [4] => item5 )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!