static関数で$thisを使いたいのですが、下記のエラーが出てきてしまいます。
Fatal error: Using $this when not in object context.
どうしたら下記の関数を機能させる事が出来ますか?
lang
1public static function userInfo() 2{ 3 $result = $this->getBirthDay(); 4}

回答1件
あなたの回答
tips
プレビュー
投稿2015/01/03 06:02
static関数で$thisを使いたいのですが、下記のエラーが出てきてしまいます。
Fatal error: Using $this when not in object context.
どうしたら下記の関数を機能させる事が出来ますか?
lang
1public static function userInfo() 2{ 3 $result = $this->getBirthDay(); 4}
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。