note 120946 rejected from language.types.array by cmb
| From: | cmb@php.net | Date: | Thu, 06 Apr 2017 14:31:32 +0000 |
| Subject: | note 120946 rejected from language.types.array by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208991@lists.php.net to get a copy of this message | ||
Note Submitter: admacro at gmail dot com
----
In Example #10 Changing element in the loop, shouldn't the $color variable be invalid outside
the loop? Putting unset($color) after the loop is like fixing a language design issue. While moving
it into the loop sort of solves the problem, I'd say it's a bit of reluctant.
What do you think? :)