Jump to content

What is this?


MuseiKaze

Recommended Posts

Sorry I wasnt sure what section to post this in. But Ive been looking all around and I havnt been able to find anything about this on tutorial sites and typing it in google produces no results. But I was just wondering what " -> " this is called and what it does?

 

Eg "$params->Data = $texttofax . $finalitems;"

 

I know its probably a simple question but I cant find a thing on it. Thanks.

Link to comment
Share on other sites

its the class assignment operator...

 

in this case you have an instance of a class $params and you are setting a property 'Data' though these things should not be publically available for setting...

 

it would be better to have $params->setData($texttofax . $finalitems); - this way you have control wiithin the object itself over the setting of that parameter by only allowing this publioc method to set what should be a private paramater

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.