/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
class Test { public $result; function __construct() { $this->result = TRUE; } public function __toString() { return (string)$this->result; } } $test = new Test();