Jump to content

Calling up Class Variable


steveangelis

Recommended Posts

I am working on a site that was made a while ago and on a custom page I am making I am needing to call up variables and my brain is too fried to think up the solution for this.  The standing code is this:

 

class site{

var $name = 'Site';

var $data = 'on';

{

 

What I need to do is callup the variables, such as $name, as simple as possible.  How would I do this?

Link to comment
https://forums.phpfreaks.com/topic/218813-calling-up-class-variable/
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.