Simple mistakes are sometimes the worst ones, creating bugs which take hours or even days to find. I recently found one interesting case, based on which I ran some tests to find out how PHP actually uses a semicolon at the end of the line.
PHP is a very strange programming language. If you have ever done any work in PHP it probably surprised you to find that 0 == false. But what I found recently is even more surprising.