Possible Duplicate:
Common programming mistakes for PHP developers to avoid?
PHP is hated by a lot of programmers and even more hated is how the code is written by sloppy PHP coders.
What, according to you, are the basic things a PHP programmer must follow and things (s)he must never not do? Or give example(s) of the most common bad PHP code you've come across and what should have been done instead.