输出结果
<?php
@header("content-Type: text/html; charset=utf-8");
echo "变量(\$string1)直接赋值null";
$string1 = null; //设置变量string1为空值
$string3 = "str"; //设置string3为str
if(!isset($string1)) //判断string1 是否被设置(是否为真)
echo "string1=null";
echo "<p>变量(\$string2)未被赋值:";
if(!isset($string2))
echo "string2 = null";
echo "<p> 被unset()函数处理过的变量(\string3)";
unset($string3); //释放$string3
if(!isset($string3))
echo "string3 = null";
?>
© 版权声明
THE END