Home >Backend Development >PHP Tutorial >The difference between isset, empty and is_null

The difference between isset, empty and is_null

WBOY
WBOYOriginal
2016-07-29 09:04:341319browse

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.

Statement:
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