Array Iterate Over Array In Php But Add To Remove From Array During

Array Iterate Over Array In Php But Add To Remove From Array During