search

Home  >  Q&A  >  body text

There is a $res bool value judgment problem inside

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

有点凉了有点凉了2381 days ago1005

reply all(0)I'll reply

No reply
  • Cancelreply