unset()是注销定义的变量.
因为PHP变量是不需要预先定义就可以使用.
如果不unset($color),后面的代码如果用到同名的$color,PHP就会使用前面使用过的这个(里面是有值的),如果不重新赋值就使用,可能会影响到正确性.
PHP unset()
----------------
Lynx
The quieter you become,the more you are able to hear.
unset()是注销定义的变量.
因为PHP变量是不需要预先定义就可以使用.
如果不unset($color),后面的代码如果用到同名的$color,PHP就会使用前面使用过的这个(里面是有值的),如果不重新赋值就使用,可能会影响到正确性.