It's reverse of compact() function compact converts some variables to an array, so you have an array with keys (variable names) and values (variable values), and you can convert back. $arr = ['foo' => 1]; extract($arr); // Now we can access $foo variable.
So extract () convert array to variable?!
Yes, as what they wrote in the documentation: Import variables into the current symbol table from an array
You're welcome.
Обсуждают сегодня