php turn an int into a string code example Example: php object to string __toString() & {$this->name}