【发布时间】:2011-10-12 12:04:15
【问题描述】:
我想知道这是否可能,尽管我很相信也许有更好的方法。我有这个脚本结构:
class Mother {
public function __construct() {
// script here
}
public function writer() {
if() {
// if true
} else {
// call function hello
}
}
public function hello() {
echo "Hello there.";
}
}
如何从 writer() 调用 hello()?谢谢。
【问题讨论】:
标签: php oop class function call