首页 > null变量

php unset()和null变量清除分析

unset ( mixed var [, mixed var [, ...]])

unset() 销毁指定的变量。注意在 php 3 中,unset() 将返回 true(实际上是整型值 1),而在 php 4 中,unset() 不再是一个真正的函数:它现在是一个语句,这样就没有了返回值,试图获取 unset() 的返回值将导致解析错误

阅读全文