fork(1) download
  1. <?php
  2.  
  3. // your code goes here
  4. $arr = [1, 2, 3];
  5. $arr[0] = null;
  6. unset($arr[1]);
  7. var_dump($arr);
Success #stdin #stdout 0.01s 82880KB
stdin
Standard input is empty
stdout
array(2) {
  [0]=>
  NULL
  [2]=>
  int(3)
}