-> What is it?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mevets
Forum Newbie
Posts: 23
Joined: Fri Sep 15, 2006 10:06 am

-> What is it?

Post by mevets »

I have often seen -> used. I have no idea what it is being used for though. It is hard to find information on the web for this operator (is it an operator?) since I really do not even know the name of it.

So can anyone tell me what ->'s practical use is?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

This is asked pretty regularly around here (I even asked about this three years ago). Is the object assignment operator is in Object Oriented Programming in PHP.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: -> What is it?

Post by Chris Corbyn »

It looks a bit like an arrow to me. I like arrows.

This one's nicer though :arrow:
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Search the forums for "dereference"
Post Reply