note 27172 added to function.array-merge-recursive

From: Date: Tue, 26 Nov 2002 00:53:13 +0000
Subject: note 27172 added to function.array-merge-recursive
Groups: php.notes 
Request: Send a blank email to php-notes+get-39969@lists.php.net to get a copy of this message
used the array_merge_clobber($a1,$a2) function written/submitted above and noticed a small problem which can be avoided by changing this line: while (list($key, $val) = each($a2)) { to this: foreach ($a2 as $key => $val) { (It also sped up performance on large arrays) -- http://www.php.net/manual/en/function.array-merge-recursive.php http://master.php.net/manage/user-notes.php?action=edit+27172 http://master.php.net/manage/user-notes.php?action=delete+27172 http://master.php.net/manage/user-notes.php?action=reject+27172

« previous php.notes (#39969) next »