graeme_p - 3:44 am on Oct 17, 2012 (gmt 0)
There are IDEs and static checkers and a lot of tools to fix these problems.
@incrediBILL, free is no excuse. I generally use free software because I prefer it, not because I an stingy. Plenty of free software is preferable (to me, at least) regardless of cost.
PHP is developed by a company that bases its business on giving away PHP for free so they can sell other stuff. If they want people to buy there other stuff they need to make PHP as good as possible.