Re: merge array
| From: | Lucian Cozma | Date: | Wed, 03 Mar 2004 08:46:34 +0000 |
| Subject: | Re: merge array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179330@lists.php.net to get a copy of this message | ||
That should do it:
"Max" <maxnamara@visitel.co.id> wrote in message
news:001201c400c8$78d1c890$2b8210ac@max...
Hello all,
I have two arrays as follows:
$x = array(3,4,6,8);
$y = array(10,20,40,10);
I need these arrays could be merged with '0' in between.
Result expected :
$x = array(1,2,3,4,5,6,7,8);
$y = array(0,0,10,20,0,40,0,10);
Can anybody help me ?
Thanks in advance.
Max