PHP code from the Codecademy project