>' in PHP?
Whenenever I'm discussing PHP with colleagues I don't know how to describe the little arrow symbol '->' used for accessing properties and methods in PHP. Does it have a name? Is it called arrow?
I mostly call it object access operator.
EDIT: Actually, come to think of it; I usually pronounce it as "dot", since most of us here are more familiar with the dot-notation for accessing objects properties. Since it's clearly not a dot, that's probably not the answer you were looking for.
链接运算符,请阅读:http://en.wikipedia.org/wiki/Method_chaining
It's called the Arrow Operator
Although it seems to be called the Arrow Operator, I can't find reference to it other than this page on the php.net web site. Granted, I didn't search all that long.
This article outlines this.
链接地址: http://www.djcxy.com/p/58148.html上一篇: 可捕获致命错误:类stdClass的对象无法转换为字符串
下一篇: >'在PHP中?