阅读背景:

如何从具有变量的类调用方法?

来源:互联网 

Given this class:

鉴于此课程:

class Tacobell{

    public function order_taco(){
        echo "3 Tacos, thank you.";
    }

    public function order_burrito(){
        echo "Cheesy bean and rice, please";
    }

}

$lunch = new Tacobell;
$lunch->order_burrito();
$lunch->order_taco();
class Tacobell{

 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: