今天修改公司的網(wǎng)站,提示Notice : Use of undefined constant ,通過下面的方法解決了,最好是error_reporting(0);不需要更改配置 GPT4.0+Midjourney繪畫+國內(nèi)大模型 會員永久免費使用! 【如果你想靠AI翻身,你先需要一個靠譜的工具!】 Notice: Use of undefined constant ALL_PS - assumed 'ALL_PS' in E:\Serve...
這么寫的結(jié)果,就是產(chǎn)生了上面那個notice,也真是奇怪,對象為null,竟然不能訪問了? 翻查資料后,發(fā)現(xiàn),判斷是否為null,需要這么判斷: 復(fù)制代碼代碼如下: if (isset($obj)) { echo "This var is set set so I will print."; } 這個isset是做什么的呢?