fork download
  1. <?php
  2.  
  3. // your code goes here
  4.  
  5. $test = array();
  6.  
  7. $test[1] = 'a';
  8.  
  9. $test[1] = 'b';
  10.  
  11. var_dump($test);
Success #stdin #stdout 0.02s 25692KB
stdin
Standard input is empty
stdout
array(1) {
  [1]=>
  string(1) "b"
}