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 |
|---|---|
| 11499 | Mismatched number of parenthesis () |
| 10719 | Mismatched number of curly braces {} |
| 7419 | Missing semicolon (warning, possible false positives) |
| 3402 | Missing > when defining an array key=>value pair |
| 2057 | Incorrect syntax for PHP code declaration <?php ?> |
| 1151 | Mismatched number of square brackets [] |
| 1113 | Missing quotes around string values when defining an array |
| 904 | Use of single equal sign in If expression |
| 497 | Variable defined with more than one equal sign |
| 410 | Mismatched number of comment tags /* */ |
| 18 | Incorrect Foreach syntax |
Logging reset on January 24, 2013 with version 1.6
Return to the PHP Code and Syntax Checker