ohffs's avatar
Level 50

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>

0 likes
6 replies
jlrdw's avatar
jlrdw
Best Answer
Level 75

member of object or object operator is what it's called.

2 likes
ohffs's avatar
Level 50

@jlrdw I think I'm going to stick with 'arrowy thing' then - I was hoping for something more exciting ;-)

lara25260's avatar

I call them pointers.

From my experience in C++.

shez1983's avatar

i dont think they are pointers.. pointers are pointing to some address in memory - whereas those are the properties/func of an object

lara25260's avatar

You could say it's pointing to a method.

Way easier to say.

steholmes's avatar

I say "stab" So I pronounce "$model->method()" as "dollar model stab method bananas"

1 like

Please or to participate in this conversation.