This is what I have tried:
foreach ($multiarr as $arr) {
foreach ($arr as $key=>$val) {
if (next($arr) === false) {
//work on last key
} else {
//work
}
}
}
After taking another look, I thinknext
is being used wrong here, but I am not sure what to do about it.
Is it possible to see if I'm on the last iteration of this array?