syntax error, unexpected T_OBJECT_OPERATOR, expecting ')'
来源:互联网 发布:域名注册在哪注册 编辑:程序博客网 时间:2024/04/29 04:02
在学习thinkphp时遇到了这样的问题:syntax error, unexpected T_OBJECT_OPERATOR, expecting ')'
问题主要出现在用order做连贯操作时:
原因是 语法错误:
错误语句:$m->order(array('id'->'desc'))->select();
正确语句:$m->order(array('id'=>'desc'))->select();
即将原本为等号“=”的写成了横线“-”
总结:
在以后的学习中一定要足够细心,牢记正确语法,拒绝犯低级错误
0 0
- syntax error, unexpected T_OBJECT_OPERATOR, expecting ')'
- Syntax error: word unexpected (expecting ")")
- Syntax error: word unexpected (expecting ")")
- Syntax error: word unexpected (expecting ")")
- line 1: syntax error: unexpected word (expecting ")")
- line: 1: Syntax error: word unexpected (expecting ")")
- line 1: syntax error: word unexpected (expecting ")")
- syntax error: unexpected word (expecting ")")错误解决办法
- thinkphp syntax error, unexpected ')', expecting T_VARIABLE or '$'
- syntax error: unexpected word (expecting ")")问题
- Syntax error: word unexpected (expecting ")")问题处理
- 出错syntax error: word unexpected (expecting ")")解决
- ModelSim错误:syntax error, unexpected "IDENTIFIER", expecting ".*" or '.'
- Ruby:syntax error, unexpected keyword_end, expecting '<' or ';' or '\n'
- Syntax error: end of file unexpected (expecting "done")
- Syntax error: word unexpected (expecting ")")错误的解决方法
- /bin/helloworld: line 1: syntax error: unexpected word (expecting ")")
- modelsim 仿真出现错误:【near ";": syntax error, unexpected ';', expecting "STRING_LITERAL"】
- lucene4.7学习总结
- Django1.10文档学习笔记五
- [BZOJ3040]最短路
- 数据结构 堆
- 朱老师ARM裸机学习笔记(二):S5PV210的内存映射
- syntax error, unexpected T_OBJECT_OPERATOR, expecting ')'
- C#调用批处理(bat)文件,并获取执行批处理(bat)文件后返回值
- 玩转环境让双语后台(Java、PHP)并发
- redhat 7.2 支持NTFS格式
- 【T3】在win7下部分参照界面白屏
- iOS技术点:判断用户是否开启推送开关/是否允许推送?
- MD5加密(加强版)
- localhost(操作系统有默认值与其对应,所以不必一定在hosts文件里明写)
- yii框架查询分页展示