fork download
  1. <?php
  2.  
  3. // your code goes here
  4. $x = ['test1'];
  5. $y = ['test2'];
  6.  
  7. $res = array_merge($x, $y);
  8. var_dump($res);
Success #stdin #stdout 0.03s 25780KB
stdin
Standard input is empty
stdout
array(2) {
  [0]=>
  string(5) "test1"
  [1]=>
  string(5) "test2"
}