Use of undefined constant ture – assumed ‘ture’ (this will throw an Error in a future version of PHP) in

付费节点推荐


免费节点


节点使用教程


wordpress报错,不识别 true,将true加引号即可~

$Pic2436 = get_post_meta($post_id,’2436x1125_value’,‘ture’);

PHP 7.2.x 中废弃的功能 ¶

不带引号的字符串 ¶

不带引号的字符串是不存在的全局常量,转化成他们自身的字符串。 在以前,该行为会产生 E_NOTICE,但现在会产生 E_WARNING。在下一个 PHP 主版本中,将抛出 Error 异常。

<?php

var_dump(NONEXISTENT);

/* Output:
Warning: Use of undefined constant NONEXISTENT – assumed ‘NONEXISTENT’ (this will throw an Error in a future version of PHP) in %s on line %d
string(11) “NONEXISTENT”
*/

未经允许不得转载:Bcoder资源网 » Use of undefined constant ture – assumed ‘ture’ (this will throw an Error in a future version of PHP) in

相关推荐

更多优质资源关注微信公众号: bcoder

bcoder
赞 (3)
分享到:更多 ()

评论 0

评论前必须登录!

登陆 注册