Log of PHP syntax errors found by the PHP Code Checker

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.

CountError
598017Mismatched number of curly braces {}
508153Mismatched number of parenthesis ()
115002Incorrect syntax for PHP code declaration <?php ?>
90604Mismatched number of square brackets []
53844Use of single equal sign in If expression
43152Missing quotes around string values when defining an array
19405Missing > when defining an array key=>value pair
18469Predefined $_VARIABLES not using proper brackets e.g. $_GET[ ]
17173Missing semicolon (warning, possible false positives)
4251Variable defined with more than one equal sign
1135Mismatched number of comment tags /* */
838Incorrect Foreach syntax

Logging reset on October 23, 2013 with version 1.8

Return to the PHP Code and Syntax Checker