function in class question
Posted: Wed Mar 19, 2003 8:49 am
how can i call a function of a class from the class when i didnt do new to the class
exapmle:
Thanks
Guy
exapmle:
Code: Select all
class A
{
f1()
{
echo 3;
}
f2()
{
A::f1(); //doesn't work
$this->f1(); //doesn't work
}
}
A::f2();Guy