Examination work in PHP