I was recently reading this thread, on some of the worst PHP practices.
In the second answer there is a mini discussion on the use of extract()
, and im just wondering what all the huff is about.
I personally use it to chop up a given array such as $_GET
or $_POST
where I then sanitize the variables later, as they have been conveniently named for me.
Is this bad practice? What is the risk here? What are your thoughts on the use of extract()
?