<?php class Test { public $something = 'hello'; public function __toString() { return $this->something; } } $t = new Test(); var_dump(strlen($t)); var_dump($t->something);
You have javascript disabled. You will not be able to edit any code.