delete the current row from an array when looping through it without setting up a counter and splice operationIHMO counter+splice is most feasible way. I use it when copying arrays with grep is too slow.
In reply to Re: foreach array - delete current row ?
by vsespb
in thread foreach array - delete current row ?
by JockoHelios
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |