“__toString()”方法也是一樣自動被呼叫的。是在直接輸出物件引用時自動呼叫的。 <?php class TestClass{ public $foo; public function __construct($foo) ...
確定! 回上一頁