search

Home  >  Q&A  >  body text

empty is more strict than isset

empty is more strict than isset

ŃŃ1177 days ago1153

reply all(5)I'll reply

  • 雪了无痕

    雪了无痕2021-11-10 11:33:13

    http://mq6n46n.cn/Shaoxing e-network recruitment online

    reply
    0
  • ? 现在努力,未来可期!

    ? 现在努力,未来可期!2021-10-27 09:22:29

    empty If the variable is a non-empty or non-zero value, empty() returns FALSE. In other words, "", 0, "0", NULL, FALSE, array(), var $var, undefined; and objects without any attributes will be considered empty, and if var is empty, TRUE is returned . isset returns TRUE if the variable exists (not NULL), otherwise returns FALSE (including undefined). The variable value is set to: null, and the return value is also false; after unsetting a variable, the variable is canceled. Note that isset handles NULL value variables specially. I use Xiaoniao Cloud Server to build a website and practice code. Now I pay 72 per year for 1 core and 2G. If you need it, you can go to Xiaoniao Cloud to check it out.

    reply
    0
  • autoload

    autoload2021-10-26 09:14:50

    Yes, I personally feel that empty is used more

    reply
    1
  • Cancelreply