I wonder if this is possible, although I'm quite convince maybe there is a better approach for this. I have this script structure:
class Mother {
public function __construct() {
// script here
}
public function writer() {
if() {
// if true
} else {
// call function hello
}
}
public function hello() {
echo "Hello there.";
}
}
How can I call hello() from writer()? Thanks.