php数据库操作类 php中,一个类中,方法内调用另一个方法?

php中,一个类中,方法内调用另一个方法?Exampleclass test{function aa(){$this->bb()//使用$this变量表示当前类}function bb(){ech

php中,一个类中,方法内调用另一个方法?

Example

class test{

function aa(){

$this->bb()//使用$this变量表示当前类

}

function bb(){

echo“pass reference”

}

]$class=new test()]$class->A()