I've looked everywhere (including php.net) and can't seem to find the answer
to this simple question.
What's the difference between var and private when initializing a variable
in a class?
For example:
class myClass {
var $var1;
private $var2;
// constructor
function myClass() {
// do something
}
}
to this simple question.
What's the difference between var and private when initializing a variable
in a class?
For example:
class myClass {
var $var1;
private $var2;
// constructor
function myClass() {
// do something
}
}
Comment