Do you mean an associative array?

foreach ($myArray as $key => $value) {
    echo("$key is $value");
}

or do you mean something like each row is an array with two values?

foreach ($myArray as $key => $values) {
    $resultOne = $values[0];
    $resultOne = $values[1];
}



Michael wrote:
> Hello,
>
> How can I run a 'foreach' loop on an array and get *two* results per row? 
> (The 
> array is 2 column).
>
> Michael
>
> >
>   

--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to