Jump to content

classes


gazever

Recommended Posts

There is an extra $ in the following line -

 

return $this->$variable1;

 

It should be -

 

return $this->variable1;

 

I'm assuming that you are developing and debugging php code on a system with error_reporting set to E_ALL and display_errors set to ON so that php will alert you to problems is finds (there would have been an error on the line posted above that would have helped you in finding the problem with that line of code.)

Link to comment
https://forums.phpfreaks.com/topic/183042-classes/#findComment-966029
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.