Fixed coding style, some inconsistencies and unused variables in PHP exa...

...mples