SHARE
TWEET

ARRAY_MERGE

a guest Apr 23rd, 2011 129 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
Want to get better at PHP?
Learn to code PHP in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top