PHP practice via a uni assignment