Optimized time complexity for problem 1 in PHP.
Reimplemented problem 6 in PHP (using array_sum).
Merge pull request #4 from chessmasterhong/master

Reimplementation of PHP solutions to problems 1 and 6.