10
I was running a code analysis PHP, and in a script used Extract.
I looked in some PHP documents and the examples are kind of abstract and unfortunately I didn’t notice much.
I would like to know in a general case what the Extract in PHP ? (If possible a concrete example).
Word of advice: avoid the
extract
. It’s not nice to make variables magically appear in a code file or, worse, function. It makes code harder to understand. If using this, at least document what is being imported.– bfavaretto
It was for a specific need... However thanks for the tip, I will do research about it !
– PululuK