function bbbb() {
echo "BBBB";
}
class a1 {
var $m;
var $m2;
var $m3;
function a1() {
$this->m = "aaaa";
$mt = $this->m;
$this->$mt();
$this->m2 = "$this->aaaa";
$mt2 = $this->m2;
$mt2;
/*これはだめうーん
ほかにやり方があるとおもうんだけど・・・
$this->m3 = "bbbb";
$mt3 = $this->m3;
$mt3();
*/
}
function aaaa() {
echo "AAAA";
}
}
$obj = new a1();
0 件のコメント:
コメントを投稿