PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
class A {
public $var = 'test';
function func() {
}
}
I know I can call A::func(), but can I not call A::var to display the word 'test'? Do I HAVE to create first an object A, and then call it A->var? Or is there a way I just don't know about?
Thanks.