I have a function called extract_array_values, which is a generalisation of your loop. Its only terser when you use it more often. Obviously this problem happens everytime you need to extract a database field value list into an SQL IN statement or a select dropdown or similar. Of course your framework may already solve these problems.
Kind Regards, Jochen [email protected] www.automatem.co.nz +64 9 630 3425 +64 21 567 853 skype: jochendaum twitter.com/automatem On Apr 26, 2010 1:21 PM, "Hamish Campbell" <[email protected]> wrote: $str = implode(",",current(call_user_func_array('array_merge_recursive', $temp))); :D On Apr 26, 12:56 pm, Neven MacEwan <[email protected]> wrote: > Chris > > Sorry read the original pro... > > On Mon, Apr 26, 2010 at 12:33 PM, Neven MacEwan <[email protected]> wrote: > > >> would implode(',... -- NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected]
