Use of undefined constant ture - assumed 'ture' (this will throw an Error in a future version of PHP)如何解决


  今天在安装一个wordpress模板时提示Use of undefined constant ture - assumed 'ture' (this will throw an Error in a future version of PHP),看提示是需要把true用''包起来,ytkah就试着把

array(
'default' => ture,
),

  改成

array(
'default' => 'ture',
),

  问题解决

  安装模板的时候有提示php需要7.4版本,但实际使用是7.3,这个应该是php不同版本的使用方法不用引起的,有遇到相似问题的朋友可以试试


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM