Words
67
Reading
1 min
Listen
Play
3y
I think PHP extract is a wonderful tool.
Personally I stopped using it. I like to explicitly initialize all the variables in a program.
I also don't like making copies of data. Anymore, I just draw data directly from the array.
Whenever I do use extract, I use it at the beginning of the program to assure that extract does not override any variables that I declared.
RE: Did you know that PHP can extract values from arrays as variables? extract()