Converting an integer to a string in PHP - Stack Overflow
There are a number of ways to "convert" an integer to a string in PHP. The traditional CS way would be to cast the variable as a string $int = 5; $int_as_string = (string) $int; echo $int . ' is a '. gettype($int) . "\n"; echo $int_as_string . ' is a ...