PHP 8.4.24 Released!

Voting

: five plus three?
(Example: nine)

The Note You're Voting On

Robc
15 years ago
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.

<< Back to user notes page

To Top