Jump to content

-> help


onthespot

Recommended Posts

Beaten but wth,

 

Read a tutorial on Classes, that will tell you all you need to know, and will explain much faster/better than on here.

 

http://www.lmgtfy.com/?q=PHP+Classes+Tutorial

 

Look for a few, they will show you what is going on here.

 

$database is an instantiated class.

removeActiveUser() is a method of that specified class.

This method requires an argument of (im guessing) a username.

The username is stored in the current class you pulled this code from. (authentication class?).

 

-CB-

Link to comment
https://forums.phpfreaks.com/topic/198384-help/#findComment-1040970
Share on other sites

Very grateful for all the responses. It is something I really need to get to grips with.

So the -> is the same as the . in C#? In that case, I understand what it does.

 

The $this is one i have seen often, it there a reason to use the word this?

I'll look on that link thankyou.

 

The following in PHP:

 

$this->someDataMember;

 

Is the same as the following in C#:

 

this.someDataMember;

Link to comment
https://forums.phpfreaks.com/topic/198384-help/#findComment-1040979
Share on other sites

Archived

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

×
×
  • 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.