Jump to content


This topic is now archived and is closed to further replies.


Extract from array

Recommended Posts

Using following class [a href=\"http://www.phpclasses.org/browse/package/2181.html\" target=\"_blank\"]http://www.phpclasses.org/browse/package/2181.html[/a]

and the issue begins here

[code]foreach ($_FILES['my_field'] as $k => $l) {

        foreach ($l as $i => $v) {

            if (!array_key_exists($i, $files))

                $files[$i] = array();

            $files[$i][$k] = $v;




There is a total of two posts going to this array. I want to get the contents of each, and assign them to the following variables respectively


Can I have some tips please? The final two variables go to make up the contents of a query

Thanks in advance :)
D x

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.