Robert Cummings wrote:
> On Tue, 2007-06-05 at 11:43 -0400, Robert Cummings wrote:
>> On Tue, 2007-06-05 at 16:39 +0100, blueboy wrote:
>>> I have an array of files to be uploaded

...


>>   $i = 0;
>>> foreach ($_FILES['userfile']['name'] as $value) {
>>>
>>>   echo $value
>>     $i++;
>>>   }
> 
> I should be shot for the above... use the following:

I was half way through arranging it ;-)

> 
> foreach ($_FILES['userfile']['name'] as $i => $value)
> {
>     echo $value;
> }
> 
> Cheers,
> Rob.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to