Blogger Information
Blog 35
fans 0
comment 1
visits 42581
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
4.12抄写作业,关于is_null()/empty()/isset()函数的功能.参数.返回值的
魏先生的博客
Original
586 people have browsed it

webwxgetmsgimg.jpgwebwxgetmsgimg2.jpg

is_null();函数,如果变量的值未定义或者值为null或者用unset()销毁后变量不存在的,返回true;否则为false.

empty();函数,1如果变量不存在,和null是一样的,可以用null和empty来判断 2.如果变量存在,切它的值不影响运行结果,为空 3.null一定是空,但空不一定是null,因为空里面还有空值.0.false;

isset();与is_null是相反的,如果变量有值且值不为null,返回true,否则false.

Correction status:Uncorrected

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post