3 ms·
My own standard is this: foreach ($array as & $ref) { // Do something with $ref } unset ($ref); i.e. put the `unset()` call on the same line a
by function_seven 14y ago
My own standard is this:
foreach ($array as & $ref) {
// Do something with $ref
} unset ($ref);
i.e. put the `unset()` call on the same line as the closing brace, forever "welding" it to that block.