Added PHP solution to problem 1.
Added PHP solution to problem 2. Minor fix to check for data type in problem 1.
Added comments for resulting output.
Merge pull request #1 from chessmasterhong/master

PHP solutions for problems 1 and 2.