クラスのメソッドをコールすると次のエラーになります。
Fatal error: Call to undefined function assign
関数はちゃんと定義してあると思うのですが、何が悪いのでしょうか?
class person {
function management($person, $position){
//
// さまざまな処理
//
//
$task = assign($person, $position);
//
// さまざまな処理
//
//
return true;
}
function withdraw($person) {
//
// さまざまな処理
//
//
return true;
}
function assign($person, $position) {
//
// さまざまな処理
//
//
return true;
}
}
$p = new person();
$res = $p->management("foo","president");
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。