hi all,
just wondering what the syntax is for calling a method of a class from
another method of that same class?
for example...
class Test {
var $test="foo";
function printTest() {
print $this->test;
}
function callMethod() {
// call the printTest() function
}
}
what is the code i need to put in the callMethod() method to call the
printTest() method???
thanks in advance
JP
just wondering what the syntax is for calling a method of a class from
another method of that same class?
for example...
class Test {
var $test="foo";
function printTest() {
print $this->test;
}
function callMethod() {
// call the printTest() function
}
}
what is the code i need to put in the callMethod() method to call the
printTest() method???
thanks in advance
JP
Comment