<?php // your code goes here $test = array(); $test[1] = 'a'; $test[1] = 'b'; var_dump($test);
Standard input is empty
array(1) { [1]=> string(1) "b" }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!