<?php // your code goes here$arr = [1, 2, 3];$arr[0] = null;unset($arr[1]);var_dump($arr);
Standard input is empty
array(2) { [0]=> NULL [2]=> int(3) }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!