在php中,isset()的功用及实例说明

WBOY
Release: 2016-06-13 13:08:59
Original
1083 people have browsed it

在php中,isset()的作用及实例说明
--------------------------------------------

检查变量是否定义

--------------------------------------------

判断变量是否已配置。
________________________________________________________________________________
isset
判断变数是否已设定。
语法: int isset(mixed var);
传回值: 整数
函式种类: PHP 系统功能
内容说明
本函式用来测试变数是否已经设定。若变数已存在则传回 true 值。其它情形传回 false 值。

使用范例
$a = "test";
echo isset($a); // true
unset($a);
echo isset($a); // false
?>

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