php double to string
snippet in php

integer to string php

user2475

return strval($integer);

php double to string

user5344

strval( $variable ) 

php object to string

user1964

__toString() & {$this->name}