Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我突然收到错误解析错误:语法错误,以下行中的意外 T_CONSTANT_ENCAPSED_STRING:
unset('SCAN/DATA.FIL');
我没有看到错误!
unset()取消设置变量。您不能unset()使用字符串文字,这没有意义。
unset()
也许您正在寻找unlink()?
unlink()
你不能取消一个常数。如果要删除文件,请选择unlink()函数。