Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试按照浏览器上的错误消息执行 php 时,出现以下错误。请帮我解决这个问题。
解析错误:语法错误,第 5 行 /var/www/html/includes/functions.inc.php 中的意外 T_STRING
不要在引号内使用相同的引号,例如在“”内不要使用“”
"hello,"rohit""
会引起问题
像使用它一样'hello,"rohit"'
'hello,"rohit"'
这意味着在第 5 行有一个脱离上下文的字符串。可能你有未转义的引号?"fred said "have a nice day.""应该"fred said \"have a nice day.\""
"fred said "have a nice day.""
"fred said \"have a nice day.\""