gpt4 book ai didi

PHP T_STRING 错误

转载 作者:行者123 更新时间:2023-12-02 06:41:09 25 4
gpt4 key购买 nike

在 mantis 中配置自定义字段时,我收到此错误消息,任何想法

Parse error: syntax error, unexpected T_STRING in C:\wamp\www\MyProj\custom_strings_inc.php on line 3

代码是

<?php
if( lang_get_current() == 'german' ) {
$defect_impact = 'Defect Impact'; #// German translation of Defect Impact
$defect_type = 'Defect Type'; #// German translation of Defect Type
$phase_of_origin = ’Phase Of Origin’; #// German translation of Phase Of Origin
}else{
# Default (use your preferred language as the default)
$defect_impact = 'Defect Impact'; // German translation of Defect Impact
$defect_type = 'Defect Type'; // German translation of Defect Type
$phase_of_origin = 'Phase Of Origin'; // German translation of Phase Of Origin
}
?>

最佳答案

此行错误的引号:

$phase_of_origin =  ’Phase Of Origin’;

应该是:

$phase_of_origin =  'Phase Of Origin';

关于PHP T_STRING 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7762558/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com