$answer_length=strlen($exapmle_answers)-($student_id*strlen($exapmle_answers)/6);// Reduce the answer by 10 characters for each subsequent student
$answer_length=strlen($exapmle_answers)-(int)($student_id*strlen($exapmle_answers)/6);// Reduce the answer by 10 characters for each subsequent student