__toString 方法用于将一个对象转换为字符串时自动调用。它必须返回一个字符串,并且不能接受任何参数。 class Person { private $name; public function ...
確定! 回上一頁