Re: Working with 3 arrays

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Robert Sossomon wrote:

I need to work with 3 different arrays where I get the value of the same key for all 3 (probably a term for this one).

The three arrays are:
field[]
type[]
char[]
and each will be assigned via another form.

What will happen is at the end of the form I want to be able to pull
field[0] type[0] char[0]
process the data and then move to the next one in all three.

I am thinking
$fields = $_POST[field];
foreach ($fields as $field)
{
Do the stuff
}

But I am a bit perplexed on how to operate on all three.

Thanks,
Robert


$fields = $_POST[field];
foreach ($fields as $field)
{
$currentType = next($type);
$currentChar = next($char);

// Do the stuff
}

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux