note 31251 rejected from function.array-merge by alindeman
| From: | alindeman@php.net | Date: | Tue, 15 Apr 2003 20:39:07 +0000 |
| Subject: | note 31251 rejected from function.array-merge by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-46654@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!