Jump to content

Archived

This topic is now archived and is closed to further replies.

ZoorBIS

What Is "->" Need to know what it does??

Recommended Posts

Hi need little help.

Beginner to PHP just wondering if "->" is the same as "="

If not could some please explain to me what it is. An example in .net or java to explain would b e great.

Share this post


Link to post
Share on other sites
it most definitely isn't.
You use -> in quite a few cases all relating to objects. It's basically getting a subsection of the string like
$object->string;
will retreive the "string" which is defined inside $object = new object()

You're better off reading the manual on object..bleh

Share this post


Link to post
Share on other sites
Do you kno the meaning of "." (dot) int Java or .NET?
"->" is the PHP version!

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.