note 120946 added to language.types.array
| From: | admacro at gmail dot com | Date: | Thu, 06 Apr 2017 07:31:09 +0000 |
| Subject: | note 120946 added to language.types.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-208988@lists.php.net to get a copy of this message | ||
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? :)
----
Server IP: 72.52.91.14
Probable Submitter: 152.101.172.157
----
Manual Page -- http://php.net/manual/en/language.types.array.php
Edit -- https://master.php.net/note/edit/120946
Del: integrated -- https://master.php.net/note/delete/120946/integrated
Del: useless -- https://master.php.net/note/delete/120946/useless
Del: bad code -- https://master.php.net/note/delete/120946/bad+code
Del: spam -- https://master.php.net/note/delete/120946/spam
Del: non-english -- https://master.php.net/note/delete/120946/non-english
Del: in docs -- https://master.php.net/note/delete/120946/in+docs
Del: other reasons-- https://master.php.net/note/delete/120946
Reject -- https://master.php.net/note/reject/120946
Search -- https://master.php.net/manage/user-notes.php