XX1“->”XX2中的箭头是什么意思,整个式子是什么意思
------解决方案--------------------
对象调用其属性或方法的符号:
- PHP code
class ABC{ public $name="TOM"; public function use(){ echo "This is void."; }}$obj = new ABC();echo $obj->name; #TOM$obj->use(); #This is void.
class ABC{ public $name="TOM"; public function use(){ echo "This is void."; }}$obj = new ABC();echo $obj->name; #TOM$obj->use(); #This is void.