note 31252 rejected from function.array-merge by alindeman

From: Date: Tue, 15 Apr 2003 20:39:51 +0000
Subject: note 31252 rejected from function.array-merge by alindeman
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-46655@lists.php.net to get a copy of this message
I have 2 arrays: $a[1][1]=1; $b[1][2]=2; I need a merged array like this: array { 1=>array { 1=>1, 2=>2 } } How can I do it? array_merge($a,$b) results: array { 0=>array { 1=>1 }, 1=>array { 2=>2 } } $a + $b results: array { 1=>array { 1=>1 } } Help me!

« previous php.notes (#46655) next »