SHARE
TWEET

ARRAY_MERGE

a guest Apr 23rd, 2011 126 Never
  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