This is not possible because ‘foreach’ operates on a copy of the array so there is no way to do it, don’t waste your time BUT You can work around this by replacing the ‘foreach’ with a ‘while’ loop, but before you do so, you must know that the following loops are functionally identical: foreach [...]
↧