if (is_bool($res) && $res == true ){//Here we only use $res to see if it == true. It is embarrassing to judge and not execute at all. This php is poisonous.
echo "Verification successful";
} else {
echo $res . 'Verification failed';
}
It's very embarrassing why, as written in the above comment