Fixed coding style, some inconsistencies and unused variables in PHP examples