PHP T_STRING错误 [英] php T_STRING error

查看:179
本文介绍了PHP T_STRING错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

While configuring custom fields in mantis i got this error message , any idea

解析错误:语法错误,意外的T_STRING输入 第3行上的C:\ wamp \ www \ MyProj \ custom_strings_inc.php

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错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆