The difference between isset, empty and is_null

WBOY
Release: 2016-07-29 09:04:34
Original
1208 people have browsed it

isset(): Only when null and undefined, return true

empty(): "", 0, "0", NULL, FALSE, array(), undefined, all return true

is_null(): Only determine whether it is null, and a warning will be reported if it is not defined

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above has introduced the differences between isset, empty and is_null, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
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!