> I have two functions in a class where one calls the other. When creating my > object I get an error: > "Call to undefined function" > I dont understand why the function can't be seen?
You'll need to prepend "$this->" to the function call.
class bob {
function firstFunction() {
}
function secondFunction() {
$this->firstFunction();
}
}
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

