Calling function B within function A in a class
Posted: Tue Feb 08, 2005 5:43 am
I have a class with 2 functions : run() and display().
display() is to be called many times in run() function.
I get the error :
Fatal error: Call to undefined function: display() in x:\xxx\xxx.php on line xx
I tried this->display($something) still same error.
This is the way it works in most OOP languages.
Using PHP 4.3.10 not 5
Any idea how to overcome this error ?
Thanks
display() is to be called many times in run() function.
Code: Select all
function run()
{
display($something)
}
function display($k)
{
...
}Fatal error: Call to undefined function: display() in x:\xxx\xxx.php on line xx
I tried this->display($something) still same error.
This is the way it works in most OOP languages.
Using PHP 4.3.10 not 5
Any idea how to overcome this error ?
Thanks