What is the name of the '->' in PHP OO <inconsequential>
It's been (mildly) bugging me that I don't know the name of the -> when doing things like $model->method(). I keep calling it 'arrowy thing' which I would love to be true, but ... ;-)
</inconsequential>
member of object or object operator is what it's called.
@jlrdw I think I'm going to stick with 'arrowy thing' then - I was hoping for something more exciting ;-)
I call them pointers.
From my experience in C++.
i dont think they are pointers.. pointers are pointing to some address in memory - whereas those are the properties/func of an object
You could say it's pointing to a method.
Way easier to say.
I say "stab"
So I pronounce "$model->method()" as
"dollar model stab method bananas"
Please sign in or create an account to participate in this conversation.