This is a collection of questions that come up every now and then about syntax in PHP. This is also a Community Wiki, so everyone is invited to participate in maintaining this list.
It used to be hard to find questions about operators and other syntax tokens.¹
The main idea is to have links to existing questions on Stack Overflow, so it's easier for us to reference them, not to copy over content from …
我最近在一些最糟糕的PHP实践中阅读了这个主题.在第二个答案中,有一个关于使用的小型讨论extract(),我只是想知道所有的愤怒是什么.
我个人用它砍了给定阵列,如$_GET或$_POST在那里我后来消毒变量,因为他们已经命名的便利,为我.
这是不好的做法吗?这有什么风险?您对使用extract()有何看法?