This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

ARRAY_MERGE

By: a guest on Apr 23rd, 2011  |  syntax: PHP  |  size: 0.13 KB  |  views: 123  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. $a = array('0' => 'Test');
  2. $b = array('0' => 'Test2');
  3. $rs = array_merge($a, $b);
  4. var_dump($rs);
  5. $rs = $b + $a;
  6. var_dump($rs);
clone this paste RAW Paste Data