There isn't really anything built into PHP which will enable you to do this. However, you could run two loops, the first to capture and store the keys of the array, and the second as you wish.
$keys = Array();
foreach($data as $key => $value)
{
$keys[] = $key;
}
$count = 0;
foreach($data as $key => $value)
{
// do what you want with the current value
// the next value in the array is $data[$keys[$count]]
$count ++;
}
Is this what you had in mind?