Home > Backend Development > PHP Tutorial > php语法异常 帮忙看上错哪了

php语法异常 帮忙看上错哪了

WBOY
Release: 2016-06-13 13:09:24
Original
814 people have browsed it

php语法错误 帮忙看下哪里错了

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->
<?php try {
  echo 111;
} catch (Exception $e) {
  echo "222";
} finally {
  echo "333";
}
?>

Copy after login

报错:Parse error: syntax error, unexpected T_LNUMBER in D:\www\test\dddd.php on line 3
求大牛帮看下哪里错了 怎么修改?


------解决方案--------------------
1、第3、5、7 行前边有全角空格
2、finally 关键词要到 php5.5 才开始支持
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template