This is a log of the most common mistakes made by PHP programmers, as determined by the errors found during PHP code checks.
This is a rough log and provided simply for the benefit of curiousity.
Note: This does not include data from the "php -l" syntax check.
Count | Error |
---|---|
969343 | Mismatched number of curly braces {} |
831582 | Mismatched number of parenthesis () |
186914 | Incorrect syntax for PHP code declaration <?php ?> |
158908 | Mismatched number of square brackets [] |
86696 | Use of single equal sign in If expression |
71936 | Missing quotes around string values when defining an array |
28638 | Predefined $_VARIABLES not using proper brackets e.g. $_GET[ ] |
28469 | Missing > when defining an array key=>value pair |
17173 | Missing semicolon (warning, possible false positives) |
5200 | Variable defined with more than one equal sign |
1284 | Incorrect Foreach syntax |
1135 | Mismatched number of comment tags /* */ |
Logging reset on October 23, 2013 with version 1.8
Return to the PHP Code and Syntax Checker