Exercise 1.1E from TACP done in php.