php手册,该怎么解决

WBOY
Release: 2016-06-13 12:31:38
Original
879 people have browsed it

php手册
http://php.net/manual/zh/function.isset.php

代码

$var = '';

// 结果为 TRUE,所以后边的文本将被打印出来。
if (isset($var)) {
    echo "This var is set so I will print.";
}

// 在后边的例子中,我们将使用 var_dump 输出 isset() 的返回值。
// the return value of isset().

$a = "test";
$b = "anothertest";

var_dump(isset($a));      // TRUE
var_dump(isset($a, $b)); // TRUE

unset ($a);

var_dump(isset($a));     // FALSE
var_dump(isset($a, $b)); // FALSE 这个b在这里有什么作用?b貌似没有被销毁。

$foo = NULL;
var_dump(isset($foo));   // FALSE

?>

var_dump(isset($a, $b)); // FALSE 这个b在这里有什么作用?b貌似没有被销毁。

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