$class->method()
^
|
what's the correct terminology for this? thanks guys!
$class->method()
^
|
what's the correct terminology for this? thanks guys!
I believe that's called the "arrow notation", assuming of course you are talking about PHP. Thats what most publications, articles and the PHP website call it, so that's what my brain says on sight.
i would say: dereference operator
see: http://en.wikipedia.org/wiki/Dereference%5Foperator
after some discussions with good commenters, the final terminology could be:
dereference and field access operator that could be shorten into: - field access operator
Depends on the language:
-PHP, I believe its just used to access a class members
-C or C++ on the other hand, it is used to derefernce a pointer and access a member. It's pretty much just syntactic sugar.
pointer->member
is equivalent to
(*pointer).member
In PHP it is called the T_OBJECT_OPERATOR
. See the List of Parser Tokens in the PHP Manual.