When trying to call "class functions" called methods in php you need to explicitly use the object. Inside of a given object there is a referance to itself called $this that is used to do this.
class HelloWorld {
function world() {
return "world"
}
function hello() {
return "Hello" . $this->world();
}
}
$hw = new HelloWorld();
print $hw->hello();