Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Merging unknown arrays
- Andr Hnsel
January 15, 2006, 11:57 pm
rate this thread
Re: Merging unknown arrays
Well, you haven't said what "this" is - what are you trying to do?
From your code, I'm guessing that you want to convert an array of
arrays into a single array. How about:
$result = array();
foreach ($array as $a)
$result = array_merge($result, $a);
- Janwillem Borleffs
January 16, 2006, 12:20 am