You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Forbids the usage of the PHP native `extract()` function. Using `extract()` makes code harder to debug, harder to understand and may cause unexpected behaviour when variables names conflict.
9
+
]]>
10
+
</standard>
11
+
<code_comparison>
12
+
<codetitle="Valid: Accessing array elements directly.">
13
+
<![CDATA[
14
+
$post_data = array(
15
+
'title' => 'My title',
16
+
'content' => 'My content',
17
+
'ID' => 123
18
+
);
19
+
<em>echo $post_data['title'];</em>
20
+
]]>
21
+
</code>
22
+
<codetitle="Invalid: Using the `extract()` function.">
0 commit comments