empty is more strict than isset
Ń
Ń 2021-10-25 16:42:51
0
5
1071

empty is more strict than isset

Ń
Ń

reply all(3)
雪了无痕

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

? 现在努力,未来可期!

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.

逆旅行人

Yes, I personally feel that empty is used more

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!