Hi,
This may be the dumbest question ever, but in the following code (using
PHP 4.3.8) how do I call b() from within a()?
class test {
function a() {
print "a called";
b();
function b() {
print "b called";
}
}
}
using "b()" (as in the code above) doesn't work, neither does $this->b()
or test::b(), so how do I call it?
Thanks!
Andrew
This may be the dumbest question ever, but in the following code (using
PHP 4.3.8) how do I call b() from within a()?
class test {
function a() {
print "a called";
b();
function b() {
print "b called";
}
}
}
using "b()" (as in the code above) doesn't work, neither does $this->b()
or test::b(), so how do I call it?
Thanks!
Andrew
Comment