I want to do something like this:
foreach ($array as $key=>$value except when $key="id") { // whatever
}
... without having to put an "if" clause inside the body of the loop. It is not guaranteed that "id" will the be the first or last element in the array, and I don't really want to unset or slice the array, because that will be expensive, ugly, and not maintain the original data. I also definitely need to use both key and value inside the loop.
Any ideas?