Re: Dynamic array_merge problem
| From: | Ace McKool | Date: | Wed, 12 Apr 2006 13:34:22 +0000 |
| Subject: | Re: Dynamic array_merge problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-233833@lists.php.net to get a copy of this message | ||
This worked wonderfully--thank you very much Jochem!
On 4/12/06, Jochem Maas <jochem@iamjochem.com> wrote:
>
> Ace McKool wrote:
> > Hi,
> >
> > This is the end result I'm trying to get:
> >
> > $z1 = array_merge($z[0], $z[1], $z[2]);
>
> $yourArrays = array($z[0], $z[1], $z[2]);
> $z1 = call_user_func_array('array_merge', $yourArrays);
>
> obviously - you have to build $yourArray before passing it
> to call_user_func_array()
>