Php – While destructuring array data in the head of a foreach() loop, can new elements be assigned to the original input array?
Since PHP7.1, a foreach() expression can implement array destructuring as a way of unpacking row values and make individualized variable assignments for later use. When using array destructuring within the head/signature of a foreach() loop, can new elements be declared…