PHP Homework Flow Control