isset
判断变数是否已设定。
语法: int isset(mixed var);
传回值: 整数
函式种类: PHP 系统功能
内容说明
本函式用来测试变数是否已经设定。若变数已存在则传回 true 值。其它情形传回 false 值。
使用范例 <?php
$a = "test";
echo isset($a); // true
unset($a);
echo isset($a); // false
?>
判断变数是否已设定。
语法: int isset(mixed var);
传回值: 整数
函式种类: PHP 系统功能
内容说明
本函式用来测试变数是否已经设定。若变数已存在则传回 true 值。其它情形传回 false 值。
使用范例 <?php
$a = "test";
echo isset($a); // true
unset($a);
echo isset($a); // false
?>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货