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