Added the PHP solution to Problem 3.