How to unset multiple variables? [duplicate]
Don't use foreach
loop for this. Since it works with a copy of array.
See Example
IF you want to do this using loop then use for
loop.
Don't use foreach
loop for this. Since it works with a copy of array.
See Example
IF you want to do this using loop then use for
loop.