php T_STRING error



在配置mantis的自定义字段时,我得到了这个错误消息,你知道吗

解析错误:语法错误,未预料的T_STRINGC:wampwwwMyProjcustom_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';

相关内容

  • 没有找到相关文章

最新更新