<?php function get_answer($input){ if ($input == ($att['ans']) ) {echo "Correct Answer . {$att['ans_desc']}"; } else { echo "Wrong Answer . {$att['ans_desc']}";