Refactor PHP's problem 20.