Jump to content

Calling a function in a class from within that same class?


ChrisMartino

Recommended Posts

Hey there, I have a function in my class called "IsClientLoggedIn", And all the functions within the class use that function, Is there any way i can call that within the class before the class gets initiated?.

 

Thanks for your time,

Christopher.

??

 

When calling a class function from within the same class, you always use $this->class_function();

 

Of course, the class will not create it's object until you call the class.

 

Thanks a bunch dude ;)

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.