Re: combining 2 arrays
| From: | Paul Scott | Date: | Tue, 16 Oct 2007 16:42:57 +0000 |
| Subject: | Re: combining 2 arrays | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-263241@lists.php.net to get a copy of this message | ||
On Tue, 2007-10-16 at 16:42 +0200, Ladislav Andel wrote:
> arrayDB1 = array(array('8', 'SER'),
> array('5','Asterisk'))
>
> When finished then it starts reading from second DB
> where I would get
>
> arrayDB2 = array(array('6', 'XIP'),
> array('4','Asterisk'))
>
>
> Is there any function where I would get
> result = array(array('8', 'SER'),
> array('9','Asterisk'), array('6','XIP'))
>
You could try something like:
$result[] = $arrayDB1;
$result[] .= $arrayDB2;
If I understand the question correctly.
--Paul