SHARE
TWEET

ARRAY_MERGE

a guest Apr 23rd, 2011 127 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data
Top