note 101954 added to function.compact
| From: | Robc at osu1 dot php dot net | Date: | Wed, 19 Jan 2011 23:16:22 +0000 |
| Subject: | note 101954 added to function.compact | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-175919@lists.php.net to get a copy of this message | ||
The description says that compact is the opposite of extract() but it is important to understand
that it does not completely reverse extract(). In particluar compact() does not unset() the
argument variables given to it (and that extract() may have created). If you want the individual
variables to be unset after they are combined into an array then you have to do that yourself.
----
Server IP: 64.71.164.2
Probable Submitter: 12.71.44.130
----
Manual Page -- http://www.php.net/manual/en/function.compact.php
Edit -- https://master.php.net/note/edit/101954
Del: integrated -- https://master.php.net/note/delete/101954/integrated
Del: useless -- https://master.php.net/note/delete/101954/useless
Del: bad code -- https://master.php.net/note/delete/101954/bad+code
Del: spam -- https://master.php.net/note/delete/101954/spam
Del: non-english -- https://master.php.net/note/delete/101954/non-english
Del: in docs -- https://master.php.net/note/delete/101954/in+docs
Del: other reasons-- https://master.php.net/note/delete/101954
Reject -- https://master.php.net/note/reject/101954
Search -- https://master.php.net/manage/user-notes.php