type conversion in php to string code example Example: php object to string __toString() & {$this->name}